[xbuild] Add support for Before/AfterTargets.
[mono.git] / mcs / errors / cs0192.cs
1 // cs0192.cs: A readonly field `A.a' cannot be passed ref or out (except in a constructor)
2 // Line: 17
3
4 using System;
5
6 class A
7 {
8         public readonly int a=5;
9         
10         public void Inc (ref int a)
11         {
12                 ++a;
13         }
14         
15         public void IncCall ()
16         {
17                 Inc (ref a);
18         }
19         
20         static void Main ()
21         {
22                 Console.WriteLine ("Test cs0192.cs");
23         }
24 }