1 // CS0278: `IListCounter' contains ambiguous implementation of `enumerable' pattern. Method `IList.GetEnumerator()' is ambiguous with method `ICounter.GetEnumerator()'
3 // Compiler options: -warnaserror -warn:2
6 using System.Collections;
10 IEnumerator GetEnumerator ();
15 IEnumerator GetEnumerator ();
18 interface IListCounter: IList, ICounter
24 static void Foo (IListCounter t)