use MOONLIGHT symbol
[mcs.git] / errors / cs0467-2.cs
blob4336a368da4cf9499b56b6fea47d5a5ead94f37c
1 // cs0467-2.cs: Ambiguity between method `ICounter.Count()' and non-method `ICollection.Count'. Using method `ICounter.Count()'
2 // Line: 30
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 interface IList
9 int Count ();
12 interface ICounter
14 int Count ();
17 interface ICollection
19 int Count { set; }
22 interface IListCounter: IList, ICounter, ICollection
26 class Test
28 static void Foo (IListCounter t)
30 t.Count ();