[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8156-2.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 X
5 {
6         int Prop {
7                 get {
8                         return 1;
9                 }
10         }
11
12         ref int Test ()
13         {
14                 return ref Prop;
15         }
16 }