Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-05-11 00:21:34 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-05-11 00:21:34 +0400
commit74084a8ed45b6c8f49ee037cb3b0684a8f07eecd (patch)
tree95987e9b88ffd2a8fd05fa49ad23b60b8cf1e6cf /mcs/errors/cs0198.cs
parent5f8029d2ffcdbe6e7a47bb7056fd60e36aea1837 (diff)
New tests
svn path=/trunk/mcs/; revision=4507
Diffstat (limited to 'mcs/errors/cs0198.cs')
-rwxr-xr-xmcs/errors/cs0198.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0198.cs b/mcs/errors/cs0198.cs
new file mode 100755
index 00000000000..60bce195511
--- /dev/null
+++ b/mcs/errors/cs0198.cs
@@ -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;
+ }
+}
+
+