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