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

gcs0453-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5eda52b21fa1cb19e8064a9bb6a15ba2c198cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0453: The type `Bar?' must be a non-nullable value type in order to use it as type parameter `T' in the generic type or method `Foo<T>'
// Line: 14
public class Foo<T>
	where T : struct
{ }

public struct Bar
{ }

class X
{
	static void Main ()
	{
		Foo<Bar?> foo;
	}
}