[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8154.cs
1 // CS8154: The body of `TestClass.TestFunction()' cannot be an iterator block because the method returns by reference
2 // Line: 10
3
4 class TestClass
5 {
6     int x;
7
8     ref int TestFunction()
9     {
10         yield return x;
11     }
12 }