Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0121-18.cs
1 // CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
2 // Line: 22
3
4 interface IIn<in T>
5 {
6 }
7
8 class Test
9 {
10
11         static void Foo (IIn<string> f)
12         {
13         }
14
15         static void Foo (IIn<Test> f)
16         {
17         }
18
19         public static int Main ()
20         {
21                 IIn<object> test = null;
22                 Foo (test);
23
24                 return 0;
25         }
26 }