-// 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;
+ }
}
-