2010-05-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / errors / cs0467-3.cs
1 // cs0467-3.cs: Ambiguity between method `ICounter.Count()' and non-method `ICollection.Count'. Using method `ICounter.Count()'
2 // Line: 34\r
3 // Compiler options: -warnaserror -warn:2\r
4
5 using System;
6
7 interface IList \r
8 {
9         int Count ();
10 }
11
12 interface ICounter \r
13 {
14         int Count ();
15 }\r
16 \r
17 interface ICollection\r
18 {\r
19         int Count { set; }\r
20 }
21
22 interface IListCounter: IList, ICounter, ICollection\r
23 {\r
24 }\r
25 \r
26 interface IListCounterNew : IListCounter\r
27 {\r
28 }
29
30 class Test\r
31 {
32         static void Foo (IListCounterNew t)
33         {
34                 t.Count ();
35         }
36 }