[Http]: Cosmetic, remove some dead code.
[mono-project.git] / mcs / errors / cs0191-2.cs
blob1f1348e06c2af3814bf2f2568a5b4bfa73761b35
1 // CS0191: A readonly field `Foo.i' cannot be assigned to (except in a constructor or a variable initializer)
2 // Line: 10
4 class Foo {
5 readonly int i;
6 Foo () { }
7 Foo (int i)
9 Foo x = new Foo ();
10 x.i = i;
12 static void Main () { Foo y = new Foo (0); }