Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1629-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;
	    }
	}
	
}