diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-12-10 04:25:29 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-12-10 04:25:29 +0300 |
commit | 5ba31c7e3a9928761c12e0a0280e86576ed8fb4d (patch) | |
tree | a11fab2c9c3b53ddea3643ecb8dc5fa2e7410a62 /mcs/errors/cs1604.cs | |
parent | a22d7c9dfb4062a69c2d8de81c5b89506873508b (diff) |
More errors that we catch
svn path=/trunk/mcs/; revision=1549
Diffstat (limited to 'mcs/errors/cs1604.cs')
-rwxr-xr-x | mcs/errors/cs1604.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mcs/errors/cs1604.cs b/mcs/errors/cs1604.cs index 5c6214972d7..1e87da758a1 100755 --- a/mcs/errors/cs1604.cs +++ b/mcs/errors/cs1604.cs @@ -1,8 +1,14 @@ -// cs1604: Cannot assign to this -// Line: +// cs1604.cs: m is a readonly variable +// line: 10 +using System.IO; + class X { - void A () + + static void Main () { - this = null; + using (MemoryStream m = new MemoryStream ()){ + m = null; + } } } + |