[xbuild] Fix bug #676671. Raise AnyEvent .
[mono.git] / mcs / errors / cs0191-2.cs
1 // cs0191-2.cs: A readonly field `Foo.i' cannot be assigned to (except in a constructor or a variable initializer)
2 // Line: 10 
3
4 class Foo {
5         readonly int i;
6         Foo () { }
7         Foo (int i)
8         {
9                 Foo x = new Foo ();
10                 x.i = i;
11         }
12         static void Main () { Foo y = new Foo (0); }
13 }