Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / errors / cs0452-4.cs
blobcd944dcd88399eb6e909f5121a324b9b39cb2b19
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 j = TestClass<int>.Value;
24 Console.WriteLine (j);