Remove invalid tests for image palettes in GdiPlusTest (#5671)
[mono.git] / mcs / errors / cs0452-3.cs
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;
4
5 public class TestClass<T> where T : class
6 {
7         static public T meth()
8         {
9                 return null;
10         }
11
12         static public T Value;
13 }                       
14         
15 public class Test
16 {
17         public Test()
18         {
19         }
20                 
21         static public void Main()
22         {
23                 int i = TestClass<int>.meth();
24                 Console.WriteLine (i);
25         }
26 }