New tests
authorMiguel de Icaza <miguel@gnome.org>
Fri, 10 May 2002 20:21:34 +0000 (20:21 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 10 May 2002 20:21:34 +0000 (20:21 -0000)
svn path=/trunk/mcs/; revision=4507

mcs/errors/cs0191.cs [new file with mode: 0755]
mcs/errors/cs0198.cs [new file with mode: 0755]

diff --git a/mcs/errors/cs0191.cs b/mcs/errors/cs0191.cs
new file mode 100755 (executable)
index 0000000..6b3cc5d
--- /dev/null
@@ -0,0 +1,12 @@
+// cs0191: can not assign to readonly variable outside constructor
+// Line: 8
+class X {
+       readonly int a;
+
+       void Y ()
+       {
+               a = 1;
+       }
+}
+
+       
diff --git a/mcs/errors/cs0198.cs b/mcs/errors/cs0198.cs
new file mode 100755 (executable)
index 0000000..60bce19
--- /dev/null
@@ -0,0 +1,12 @@
+// cs0198: can not assign to static readonly variable outside static constructor
+// Line: 8
+class X {
+       static readonly int a;
+
+       static void Y ()
+       {
+               a = 1;
+       }
+}
+
+