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

gtest-319.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 714e32c4f89c795cac8646334c2df74f821e018b (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
// Bug #80314
using System.Collections.Generic;
using System.Collections;

public class Temp<T> : IEnumerable<Temp<T>.Foo>
{
	public class Foo { }

	public IEnumerator<Temp<T>.Foo> GetEnumerator()
	{
		yield return new Foo ();
	}

	IEnumerator IEnumerable.GetEnumerator()
	{
		return GetEnumerator();
	}
}

class X
{
	public static void Main ()
	{ }
}