a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
400 B
C#
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 ();
|
|
}
|
|
}
|