2009-05-29 Steven Munroe <munroesj@us.ibm.com>
[mcs.git] / errors / cs0467.cs
blob86acc2e34ad39d86aec1c5c26451c344777df9ca
1 // cs0467.cs: Ambiguity between method `ICounter.Count(int)' and non-method `IList.Count'. Using method `ICounter.Count(int)'
2 // Line: 30
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 interface IList
9 int Count { get; set; }
12 interface ICounter
14 void Count (int i);
17 interface IEx
19 void Count (params int[] i);
22 interface IListCounter: IEx, IList, ICounter
26 class Test
28 static void Foo (IListCounter t)
30 t.Count (1);