2010-04-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0121-2.cs
blob776d186e4dc49392486fe11cc55c48bce9eac279
1 // cs0121-2.cs: The call is ambiguous between the following methods or properties: `IFoo.DoIt()' and `IBar.DoIt()'
2 // Line: 9
4 class A : IFooBar {
5 static void Main ()
7 A a = new A ();
8 IFooBar fb = (IFooBar) a;
9 fb.DoIt ();
12 void IFoo.DoIt ()
14 System.Console.WriteLine ("void IFoo.DoIt ()");
17 void IBar.DoIt ()
19 System.Console.WriteLine ("void IBar.DoIt ()");
23 interface IFoo {
24 void DoIt ();
27 interface IBar {
28 void DoIt ();
31 interface IFooBar : IFoo, IBar {}