Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0452-10.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 `A.Foo<T>(T, string)'
2 // Line: 18
3
4 class A
5 {
6         static int Foo<T> (T a, string s) where T : class
7         {
8                 return 1;
9         }
10
11         static int Foo<T> (T a, object y)
12         {
13                 return 2;
14         }
15
16         public static void Main ()
17         {
18                 A.Foo<int> (99, null);
19         }
20 }