diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-05-11 00:21:34 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-05-11 00:21:34 +0400 |
commit | 74084a8ed45b6c8f49ee037cb3b0684a8f07eecd (patch) | |
tree | 95987e9b88ffd2a8fd05fa49ad23b60b8cf1e6cf /mcs/errors/cs0198.cs | |
parent | 5f8029d2ffcdbe6e7a47bb7056fd60e36aea1837 (diff) |
New tests
svn path=/trunk/mcs/; revision=4507
Diffstat (limited to 'mcs/errors/cs0198.cs')
-rwxr-xr-x | mcs/errors/cs0198.cs | 12 |
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; + } +} + + |