2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0452-3.cs
blobf6fbe4375c36449f5002c51a377c037717f18f5d
1 // CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `TestClass<T>'
2 // Line: 23
3 using System;
5 public class TestClass<T> where T : class
7 static public T meth()
9 return null;
12 static public T Value;
15 public class Test
17 public Test()
21 static public void Main()
23 int i = TestClass<int>.meth();
24 Console.WriteLine (i);