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

gtest-542.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4bce6ee9d9020638c15576f95f6fa60d89ec134 (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
abstract class A<T>
{
	public abstract T getT ();

	public class B : A<B>
	{
		public override A<T>.B getT ()
		{
			return this;
		}
	}
}

class C
{
	public static int Main ()
	{
		var r = new A<short>.B ();
		if (r.getT () != r)
			return 1;
		
		return 0;
	}
}