summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0452.cs
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 ()
	{ }
}