Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0229.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ebf8fac81cdba95fe58b973df9b4176a13c345c7 (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.cs: 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; 
	}
}