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

gtest-531.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e27fb1824f7f4c801cb7bad2458739dee2591a40 (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
33
34
35
36
37
38
39
40
41
42
43
class ATop<T> : IA<T>
{
	IA<T> list;
	
	T[] IB<T>.ToArray (T[] t)
	{
		return null;
	}
	
	void IC.ToArray ()
	{
	}
	
	public void Test ()
	{
		list = this;
		list.ToArray (new T [0]);
		list.ToArray ();
	}
}

interface IA<U> : IC, IB<U>
{
}

interface IB<V> : IC
{
	V[] ToArray (V[] array);
}

interface IC
{
	void ToArray ();
}

class M
{
	public static int Main ()
	{
		new ATop<short>().Test ();
		return 0;
	}
}