[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0121-2.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `IFoo.DoIt()' and `IBar.DoIt()'
2 // Line: 9
3
4 class A : IFooBar {
5         static void Main ()
6         {
7                 A a = new A ();
8                 IFooBar fb = (IFooBar) a;
9                 fb.DoIt ();
10         }
11
12         void IFoo.DoIt ()
13         {
14                 System.Console.WriteLine ("void IFoo.DoIt ()");
15         }
16
17         void IBar.DoIt ()
18         {
19                 System.Console.WriteLine ("void IBar.DoIt ()");
20         }
21 }
22
23 interface IFoo {
24         void DoIt ();
25 }
26
27 interface IBar {
28         void DoIt ();
29 }
30
31 interface IFooBar : IFoo, IBar {}