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

gtest-613.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 963642b85712a3123ef5d5b054c3bb20595f870b (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
class X
{
	public static void Foo (X x1)
	{
	}

	public static void Main ()
	{
		C<X, X, X>.Test (new X ());
	}

	public int Prop {
		get {
			return 5;
		}
	}
}

class Y
{
}

class C<T1, T2, T3>
	where T1 : X
	where T2 : T1
	where T3 : T2
{
	public static void Test (T3 t3)
	{
		X.Foo (t3);
		var g = t3.Prop;
	}
}