1 // cs0158.cs: A static readonly field cannot be passed ref or out (except in a static constructor)
\r
5 static readonly int index;
\r
7 static ClassMain () {
\r
8 GetMaxIndex (ref index);
\r
11 static void GetMaxIndex (ref int value) {
\r
15 public static void Main () {
\r
16 GetMaxIndex (ref index);
\r