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

gtest-535.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a35120dc414ca5bca7bd5ac8ffcd01809e6f7fa (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 G<T> where T : class
{
}

class A
{
	static int Foo<T> (T a, G<T> y) where T : class
	{
		return 1;
	}

	static int Foo<T> (T a, object y)
	{
		return 2;
	}

	public static int Main ()
	{
		if (A.Foo<int> (99, null) != 2)
			return 1;

		if (A.Foo (66, null) != 2)
			return 2;

		return 0;
	}
}