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

gtest-012.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a7cc66f1ee2d7854953c68f30df2efacedeea940 (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
// A generic type definition may have another generic type
// definition as its parent.

class Stack<S>
{
	public void Hello (S s)
	{ }		
}

class Test<T> : Stack<T>
{
	public void Foo (T t)
	{ }
}

class X
{
	Test<int> test;

	void Test ()
	{
		test.Foo (4);
		test.Hello (3);
	}

	public static void Main ()
	{ }
}