diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-11-29 10:38:17 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-11-29 10:38:17 +0300 |
commit | 528739066e58d55ea7b2fab12c1e594fcd58bd5c (patch) | |
tree | 09b52fbb05d37a428e6f28f45ec29775ecd064e2 /mcs/errors/cs1648.cs | |
parent | 24a77e294b1c3e988f571b4f8b631a549aec35eb (diff) |
new tests
svn path=/trunk/mcs/; revision=36761
Diffstat (limited to 'mcs/errors/cs1648.cs')
-rw-r--r-- | mcs/errors/cs1648.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs1648.cs b/mcs/errors/cs1648.cs new file mode 100644 index 00000000000..f4d9dec5530 --- /dev/null +++ b/mcs/errors/cs1648.cs @@ -0,0 +1,15 @@ +// cs1648.cs: Members of readonly field 'C.s' cannot be assigned to (except in a constructor or a variable initializer) +// Line: 13 + +struct S { + public int x; +} + +class C { + readonly S s; + + public void Test () + { + s.x = 42; + } +} |