[Http]: Cosmetic, remove some dead code.
[mono-project.git] / mcs / errors / cs0121-2.cs
blobc4c953de81b9e677d4add68f5182c84fe9fe7eb9
1 // CS0121: 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 {}