[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs0121-22.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `A.Foo<int>(int, G<int>)' and `A.Foo<int>(int, object)'
2 // Line: 18
3
4 class A
5 {
6         static int Foo<T> (T a, G<T> y = null)
7         {
8                 return 1;
9         }
10
11         static int Foo<T> (T a, object y = null)
12         {
13                 return 2;
14         }
15
16         public static int Main ()
17         {
18                 if (A.Foo<int> (99) != 2)
19                         return 1;
20
21                 return 0;
22         }
23 }
24
25 class G<U>
26 {
27 }