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: c210ba0efccceaf790ce9d635cd738ae3f08ad2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0452: The type `X' 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 ()
	{ }
}