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

gtest-iter-18.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e40f4fbdd034700473924ba10185086f9355a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Collections.Generic;

public class c
{
	public static IEnumerable<char> func ()
	{
		yield return '0';
		yield break;
		foreach (char c in "1") {
			yield return c;
		}
	}

	public static void Main ()
	{
		foreach (char a in func ()) {
		}
	}
}