cleol
[mcs.git] / errors / cs0199.cs
blobbc41b23db8960535dcf6059bf14fbc8795c0e3c3
1 // cs0199.cs: A static readonly field `ClassMain.index' cannot be passed ref or out (except in a static constructor)
2 // Line: 19
4 class ClassMain {
5 static readonly int index;
7 static ClassMain ()
9 GetMaxIndex (ref index);
12 static void GetMaxIndex (ref int value)
14 value = 5;
17 public static void Main ()
19 GetMaxIndex (ref index);