[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8160.cs
1 // CS8160: A readonly field cannot be returned by reference
2 // Line: 10
3
4 class X
5 {
6         readonly int f = 0;
7
8         ref int Test ()
9         {
10                 return ref f;
11         }
12 }