[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0119-2.cs
index 127aa1d408b70b960bc88f4adc95857f6a311266..e3fc7da23d56e8bd881f1f4fd7eafe4f32dfb2d1 100644 (file)
@@ -1,14 +1,17 @@
-// 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