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

gtest-528.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a3b3f90416ab68cc68009e46b082488e320a8bd (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
using System;

public class GenericType<U> where U : IEquatable<U>
{
	public U u;
}

public class Base
{
	public virtual T Test<T> (GenericType<T> gt) where T : IEquatable<T>
	{
		return gt.u;
	}
}

public class Override : Base
{
	public override T Test<T> (GenericType<T> gt)
	{
		return base.Test (gt);
	}

	public static int Main ()
	{
		Base b = new Override ();
		b.Test (new GenericType<int> ());
		return 0;
	}
}