[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8176.cs
1 // CS8176: Iterators cannot use by-reference variables
2 // Line: 12
3
4 using System.Collections.Generic;
5
6 class X
7 {
8         int x;
9
10         IEnumerable<int> Test ()
11         {
12                 ref int y = ref x;
13                 yield break;
14         }
15 }