[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git] / mcs / errors / cs1649.cs
blobae1edcd1b5dafbbdca6d29614db2a030d7bb10df
1 // CS1649: 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);