2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0191-2.cs
blob7a98166a4a669b508bd305adabf970dc50d0e81b
1 // cs0191-2.cs: 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); }