summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-579.cs
blob: 615312c36b299d98b9c13c7753d2307988b4dfd8 (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
public interface IA<T>
{
}


public class G<U, V> : IA<G<V, string>>
{
}

public class C
{
	static bool Test_2 <T2>(T2[] t)
	{
		return t is byte[];
	}

	public static int Main ()
	{
		G<long, short> p = new G<long, short> ();
		if (p is IA<G<string, string>>)
			return 1;

		if (Test_2 (new int [0]))
			return 2;

		if (!Test_2 (new byte [0]))
			return 3;

		return 0;
	}
}