cleol
[mcs.git] / errors / cs1651.cs
blob0f272277dfa6b12c9cbade345f7a99810f92672d
1 // cs1651.cs: Fields of static readonly field `B.a' cannot be passed ref or out (except in a static constructor)
2 // Line: 23
4 class B
6 public struct A
8 public int val;
11 public static readonly A a = new A ();
14 class C
16 static void f (ref int i)
18 i = 44;
21 static void Main ()
23 f (ref B.a.val);