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

gtest-465.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf7a87d92a144a5b37b3ee81461c8d97c97ef5be (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
// Compiler options: -r:gtest-465-lib.dll

public class DerivedClass : InterfaceWithGenericMethod
{
	public void GenericMethod_1<T> () where T : struct, II
	{
	}

	public void GenericMethod_2<T> () where T : class, II
	{
	}

	public void GenericMethod_3<T> () where T : II, new ()
	{
	}
}

class Program
{
	public static int Main ()
	{
		new DerivedClass ();
		return 0;
	}
}