summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1637.cs
blob: 7e6237f7fa8f4433b4ddb10b66afab4e7bbb01fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS1637: Iterators cannot have unsafe parameters or yield types
// Line: 6
// Compiler options: /unsafe

unsafe class C
{
    public System.Collections.IEnumerator GetEnumerator (int* p)
    {
        yield return 1;
    }
    
}