-// CS0023: The `.' operator cannot be applied to operand of type `void'\r
-// Line: 8\r
-\r
-class C\r
-{\r
- public static void Main ()\r
- {\r
- string s = void.ToString ();\r
- }\r
-}
\ No newline at end of file
+// CS0023: The `.' operator cannot be applied to operand of type `method group'
+// Line: 9
+
+public class App {
+
+ public static void Main() {}
+
+ SomeEnum SomeEnum() {
+ return SomeEnum.First;
+ }
+
+}
+
+enum SomeEnum { First, Second };