* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / errors / cs0428.cs
index b80e783eccabfad25c0cdbab91f064a150604439..5ef06a55e09c830197c05b3c31f7aab7cc4bfd39 100644 (file)
@@ -1,12 +1,14 @@
-// cs0428.cs: Can not convert method group to type X, since type is not a delegate
-// Line: 9
+// cs0428.cs: Cannot convert method group `a' to non-delegate type `int'. Did you intend to invoke the method?
+// Line: 12
+
 class X {
-       static void Method ()
+       int a (int a)
        {
+               return 0;
        }
 
-       static void Main ()
+       void b ()
        {
-               object o = Method;
+               int x = a;
        }
 }