summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0229.cs
blob: b0d370062b0b1288b7627df135f6da9686a022a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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; 
	}
}