2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs1649.cs
blobc4fdd64ee5bd59e63c97036aef5cbb4bf8b2ad0f
1 // cs1649.cs: Members of readonly field `B.a' cannot be passed ref or out (except in a constructor)
2 // Line: 13
4 class B
6 public struct A
8 public int val;
11 public readonly A a = new A ();
14 class C
16 static void f (ref int i)
18 i = 44;
21 static void Main ()
23 B b = new B ();
24 f (ref b.a.val);