Merge branch 'cecil-light'
[mono.git] / mcs / errors / cs0121-15.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `A.Foo(int, string)' and `A.Foo(string, int)'
2 // Line: 27
3
4 class A
5 {
6         public virtual void Foo (int a2, string b2)
7         {
8         }
9         
10         public void Foo (string b, int a)
11         {
12         }
13 }
14
15 class B : A
16 {
17         public override void Foo (int a, string b)
18         {
19         }
20 }
21
22 class C
23 {
24         public static void Main ()
25         {
26                 B b = new B ();
27                 b.Foo (a: 1, b: "x");
28         }
29 }