Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs0023-6.cs
index 30556f22d3d081f4842d48cfed00ee2d76894cde..feb834f2036d8ba8f727644e8ec523f93c450b53 100644 (file)
@@ -1,10 +1,14 @@
-// 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 };