-// cs0119-2.cs: Expression denotes a `method group', where a `variable', `value' or `type' was expected
-// Line: 9
+// CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
+// Line: 14
-public class App {
+using System;
- public static void Main() {}
+namespace Test
+{
+ public delegate void SomeDel (Action a);
- SomeEnum SomeEnum() {
- return SomeEnum.First;
- }
-
-}
-
-enum SomeEnum { First, Second };
+ public class TestClass
+ {
+ public void TestMethod ()
+ {
+ SomeDel (() => { });
+ }
+ }
+}
\ No newline at end of file