Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0452-10.cs
blobe210af722a13599e73d27349cce7e8e94828f37b
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 `A.Foo<T>(T, string)'
2 // Line: 18
4 class A
6 static int Foo<T> (T a, string s) where T : class
8 return 1;
11 static int Foo<T> (T a, object y)
13 return 2;
16 public static void Main ()
18 A.Foo<int> (99, null);