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

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

struct S
{
}

class C<U>
{
	static void Foo<T> (T value) where T : U
	{
	}

	public static void Test (S? s)
	{
		C<S?>.Foo (s);
		C<ValueType>.Foo (s);
		C<object>.Foo (s);
	}
}

class M
{
	public static void Main ()
	{
		C<int>.Test (null);
	}
}