[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8156.cs
1 // CS8156: An expression cannot be used in this context because it may not be returned by reference
2 // Line: 8
3
4 class Test
5 {
6         ref int Foo ()
7         {
8                 return ref 2;
9         }
10 }