2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0121-9.cs
blob68303d38396a19ee8bd3ed661cfd683d4b0a8774
1 // CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
2 // Line: 29
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 class Test
27 static void Foo (IListCounter t)
29 t.Count ();