-// 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;
}
}