2010-05-27 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0121-10.cs
blob37fd0245ae530705ed1dcaae82c221d7f50bd02b
1 // CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
2 // Line: 33
4 using System;
6 interface IList
8 int Count ();
11 interface ICounter
13 int Count ();
16 interface ICollection
18 int Count { set; }
21 interface IListCounter: IList, ICounter, ICollection
25 interface IListCounterNew : IListCounter
29 class Test
31 static void Foo (IListCounterNew t)
33 t.Count ();