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

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

public class Test
{
	public static int Main ()
	{
		var x = Test2 ();
		if (x.Count () != 0)
			return 1;

		Console.WriteLine ("ok");
		return 0;
	}

	public static IEnumerable<int> Test2 ()
	{
		while (false)
			yield return 5;
	}
}