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

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

struct Foo
{ }

class X
{
	MyObject<Foo> foo;

	static void Main ()
	{ }
}