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

cs1622.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f87996223784a73d2d5373231bc0b91e3c8d4b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs1622.cs: Return not allowed in iterator method
// Line: 11
using System.Collections;

class X {
	IEnumerator MyEnumerator (int a)
	{
		if (a == 0)
			yield return 1;
		else
			return null;
	}

	static void Main ()
	{
	}
}