[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs1637.cs
1 // CS1637: Iterators cannot have unsafe parameters or yield types
2 // Line: 6
3 // Compiler options: /unsafe
4
5 unsafe class C
6 {
7     public System.Collections.IEnumerator GetEnumerator (int* p)
8     {
9         yield return 1;
10     }
11     
12 }