[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 5d67a55576a6e398d4476ff21a5041ca263580c8..e3fc7da23d56e8bd881f1f4fd7eafe4f32dfb2d1 100644 (file)
@@ -1,14 +1,17 @@
-// CS0119: Expression denotes a `type', where a `variable' or `value' was expected
-// Line: 12
-public class Foo<T>
+// CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
+// Line: 14
+
+using System;
+
+namespace Test
 {
-}
-class X
-{
-       static void Main ()
+       public delegate void SomeDel (Action a);
+
+       public class TestClass
        {
-               Foo<X> = new Foo<X> ();
+               public void TestMethod ()
+               {
+                       SomeDel (() => { });
+               }
        }
-}
+}
\ No newline at end of file