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

cs0467.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 86acc2e34ad39d86aec1c5c26451c344777df9ca (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
29
30
31
32
// cs0467.cs: Ambiguity between method `ICounter.Count(int)' and non-method `IList.Count'. Using method `ICounter.Count(int)'
// Line: 30
// Compiler options: -warnaserror -warn:2

using System;

interface IList 
{
	int Count { get; set; }
}

interface ICounter
{
	void Count (int i);
}

interface IEx
{
	void Count (params int[] i);
}

interface IListCounter: IEx, IList, ICounter
{
}

class Test
{
	static void Foo (IListCounter t)
	{
		t.Count (1); 
	}
}