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

cs0229-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ba228f69ca96e03d75682a26a6abd8b0571c38a (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
27
28
// cs0229-2.cs: Ambiguity between `IList.Test' and `ICounter.Test'
// Line: 26

using System;

delegate void Foo ();

interface IList 
{
	event Foo Test;
}

interface ICounter 
{
	event Foo Test;
}

interface IListCounter: IList, ICounter
{
}

class Test
{
	static void Foo (IListCounter t)
	{
		t.Test += null;
	}
}