[unit-tests] Fix Makefile.am when Mono is compiled with LLVM
[mono-project.git] / mcs / errors / cs1651.cs
bloba84e573bf267791aabe3e9f1339d8f6214e14ede
1 // CS1651: 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);