Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
400 B
C#

// CS0467: Ambiguity between method `IMethod.Count()' and invocable non-method `IList.Count'. Using method group
// Line: 27
// Compiler options: -warn:2 -warnaserror
using System;
delegate void D (int i);
interface IList
{
D Count { get; }
}
interface IMethod
{
int Count ();
}
interface IListCounter: IList, IMethod
{
}
class Test
{
static void Foo (IListCounter t)
{
t.Count ();
}
}