[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs0467.cs
1 // CS0467: Ambiguity between method `IMethod.Count()' and invocable non-method `IList.Count'. Using method group
2 // Line: 27
3 // Compiler options: -warn:2 -warnaserror
4
5 using System;
6
7 delegate void D (int i);
8
9 interface IList 
10 {
11         D Count { get; }
12 }
13
14 interface IMethod
15 {
16         int Count ();
17 }
18
19 interface IListCounter: IList, IMethod
20 {
21 }
22
23 class Test
24 {
25         static void Foo (IListCounter t)
26         {
27                 t.Count ();
28         }
29 }