[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8151.cs
1 // CS8151: The return by reference expression must be of type `string' because this method returns by reference
2 // Line: 10
3
4 public class X
5 {
6         int field;
7
8         ref string TestMethod ()
9         {
10                 return ref field;
11         }
12 }