Updated project.
[mono.git] / mcs / errors / cs0199.cs
1 // cs0199.cs: A static readonly field cannot be passed ref or out (except in a static constructor)\r// Line: 19\r
2 class ClassMain {\r        static readonly int index;\r
3         static ClassMain ()
4         {\r                GetMaxIndex (ref index);\r        }\r
5         static void GetMaxIndex (ref int value)
6         {\r                value = 5;\r        }\r
7         public static void Main ()
8         {\r                GetMaxIndex (ref index);\r        }\r}\r