a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
294 B
C#
26 lines
294 B
C#
// CS0229: Ambiguity between `IList.Count' and `ICounter.Count'
|
|
// Line: 24
|
|
|
|
using System;
|
|
|
|
interface IList
|
|
{
|
|
int Count { set; }
|
|
}
|
|
|
|
interface ICounter
|
|
{
|
|
int Count { set; }
|
|
}
|
|
|
|
interface IListCounter: IList, ICounter
|
|
{
|
|
}
|
|
|
|
class Test
|
|
{
|
|
static void Foo (IListCounter t)
|
|
{
|
|
t.Count = 9;
|
|
}
|
|
} |