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

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