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

gtest-244.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e2ba1ce7a708d2b8ae94ec01b62f1fd52629bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class B
{
	public virtual T Get<T> ()
	{
		return default (T);
	}
}

public class A : B
{
	public override T Get<T>()
	{
		T resp = base.Get<T> ();
		System.Console.WriteLine("T: " + resp);
		return resp;
	}

	public static void Main ()
	{
		new A().Get<int> ();
	}
}