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

dtest-020.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 294989e47a9065db6ac52e6904fe3f817e89eb45 (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
class Class1
{
	public int Method1 () { return 1000; }
}

class Class2<T>
{
	public T t;
}

class Class3 : Class2<dynamic>
{
	public void Method2 ()
	{
		t.Method1 ();
	}
}

class Program
{
	public static void Main ()
	{
		var c3 = new Class3 ();
		c3.t = new Class1 ();
		c3.Method2 ();
	}
}