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

test-partial-12.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7e547a2aaf9d14a44d8087b9803a348ee480313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Compiler options: -langversion:default

using System;

namespace Test1
{
	public partial class Foo
	{
	   internal static System.Collections.IEnumerable E ()
	   {
		   yield return "a";
	   }
	}
}

class X
{
	static int Main ()
	{
		foreach (string s in Test1.Foo.E())
		{
			Console.WriteLine (s);
			if (s != "a")
				return 1;
			
			return 0;
		}
		return 2;
	}
}