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

gtest-572.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec043ca7be650248440bbb04a3a914d7ee621e59 (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
31
32
using System.Collections.Generic;

interface IC<T> : IB<T>, IEnumerable<T>
{
}

interface IB<V> : IA<V>
{
}

interface IA<W> : IEnumerable<W>
{
}

class C : IC<short>
{
	public IEnumerator<short> GetEnumerator ()
	{
		return null;
	}

	System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator ()
	{
		throw new System.NotImplementedException ();
	}

	public static void Main ()
	{
		IC<short> ic = new C ();
		var m2 = ic.GetEnumerator ();
	}
}