2004-05-14 Marek Safar <marek.safar@seznam.cz>
[mono.git] / mcs / errors / cs0199.cs
1 // cs0158.cs: A static readonly field cannot be passed ref or out (except in a static constructor)\r
2 // Line: 16\r
3 \r
4 class ClassMain {\r
5         static readonly int index;\r
6     \r
7         static ClassMain () {\r
8                 GetMaxIndex (ref index);\r
9         }\r
10         \r
11         static void GetMaxIndex (ref int value) {\r
12                 value = 5;\r
13         }\r
14         \r
15         public static void Main () {\r
16                 GetMaxIndex (ref index);\r
17         }\r
18 }\r
19 \r