summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1629-2.cs
blob: c26eafe5cdb1cd56eb560e3cb69b0ad3c989f745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS1629: Unsafe code may not appear in iterators
// Line: 8
// Compiler options: -unsafe

using System.Collections;

class X {
	static IEnumerator GetIt ()
	{
	    unsafe {
		yield return 1;
	    }
	}
	
}