2009-11-17 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / gcs0452.cs
blobb6a800618241a8fce74b1d86acca01fcb48138c9
1 // 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>'
2 // Line: 13
3 public class MyObject<T>
4 where T : class
5 { }
7 struct Foo
8 { }
10 class X
12 MyObject<Foo> foo;
14 static void Main ()
15 { }