svn path=/branches/mono-1-1-9/mcs/; revision=51212
[mono.git] / mcs / errors / gcs0452.cs
1 // CS0452: The type `X' must be a reference type in order to use it as type
2 //         parameter `T' in the generic type or method `MyObject<T>'.
3 // Line: 13
4 public class MyObject<T>
5         where T : class
6 { }
7
8 struct Foo
9 { }
10
11 class X
12 {
13         MyObject<Foo> foo;
14
15         static void Main ()
16         { }
17 }