Merge pull request #3585 from lateralusX/jlorenss/win-counter-warning
[mono.git] / mcs / errors / cs1031.cs
index 349556248dc931d7b883080307bd80b2be698f9a..28f11a17660bee8e1b90ccf841769649da252a07 100644 (file)
@@ -1,11 +1,13 @@
-// cs1031.cs: Type expected
+// CS1031: Type expected
 // Line: 8
 
+using System;
+
 class M
 {
-    public static void Main ()
-    {
-        p = new this;
-    }
+       public static void Main ()
+       {
+               Type t = typeof (this);
+       }
 }