avoid using a custom sources file for the net_2_1_raw profile
[mcs.git] / errors / cs0192.cs
blob6590e4acda731736aab8beb02e03a3039448c36d
1 // cs0192.cs: A readonly field `A.a' cannot be passed ref or out (except in a constructor)
2 // Line: 17
4 using System;
6 class A
8 public readonly int a=5;
10 public void Inc (ref int a)
12 ++a;
15 public void IncCall ()
17 Inc (ref a);
20 static void Main ()
22 Console.WriteLine ("Test cs0192.cs");