2009-05-29 Steven Munroe <munroesj@us.ibm.com>
[mcs.git] / errors / gcs0452-2.cs
blob0b4be0eaf56cfa644e847a370bcc5c7e22c43f61
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 `Foo.Test<T>(ref T)'
2 // Line: 14
3 public class Foo
5 public static void Test<T> (ref T t)
6 where T : class
7 { }
10 public class C {
11 public static void Main ()
13 int i = 0;
14 Foo.Test<int> (ref i);