Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs1604.cs
index 1e87da758a10528732c052490d89bb1ec5b6eedb..aade078c9b4afb443ae1d5683c30b5303496a804 100644 (file)
@@ -1,14 +1,10 @@
-// cs1604.cs: m is a readonly variable
-// line: 10
-using System.IO;
+// CS1604: Cannot assign to `this' because it is read-only
+// Line: 8
 
-class X {
-
-       static void Main ()
-       {
-               using (MemoryStream m = new MemoryStream ()){
-                       m = null;
-               }
-       }
+class C
+{
+    public void Main ()
+    {
+               this = null;
+    }
 }
-