In ilasm/tests:
[mcs.git] / errors / cs0192.cs
blob072b7f68a5498512fc0c5b6645e0a6a3720b1392
1 // cs0192.cs: A readonly field `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");