svn path=/trunk/mcs/; revision=1153
@@ -0,0 +1,10 @@
+// cs0026: use of this is not allowed in a static field initializer
+//
+class X {
+ static object o = this;
+
+ static int Main ()
+ {
+ return 1;
+ }
+}
@@ -0,0 +1,8 @@
+// cs0026: use of this is not allowed in static methods
+// Line: 6
+ static void A ()
+ this = null;
+// cs0131.cs: left hand side of an assignment must be variable, property access or indexer
+// Line:
+ void A ()
+ 5 = 4;
@@ -0,0 +1,9 @@
+// cs0171.cs: field x must be initialized before constructor X ends.
+ public readonly int x;
+ X ()
@@ -0,0 +1,15 @@
+// cs0200: can not assign to property X.P -- it is readonly
+// line: 12
+ static int P {
+ get {
+ P = 10;
+// cs1604: Cannot assign to this