Flush (work in progress)
[mono.git] / mcs / errors / cs0121-10.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `IList.Count()' and `ICounter.Count()'
2 // Line: 33\r
3
4 using System;
5
6 interface IList \r
7 {
8         int Count ();
9 }
10
11 interface ICounter \r
12 {
13         int Count ();
14 }\r
15 \r
16 interface ICollection\r
17 {\r
18         int Count { set; }\r
19 }
20
21 interface IListCounter: IList, ICounter, ICollection\r
22 {\r
23 }\r
24 \r
25 interface IListCounterNew : IListCounter\r
26 {\r
27 }
28
29 class Test\r
30 {
31         static void Foo (IListCounterNew t)
32         {
33                 t.Count ();
34         }
35 }