blob: 4b969744c051657cd16dd9cd4119d16118acf9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// cs1629.cs: Unsafe code may not appear in iterators
// Line: 8
// Compiler options: -unsafe
using System.Collections;
class X {
static unsafe IEnumerator GetIt ()
{
yield return 1;
}
}
|