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