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

cs0668-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d7c64b362b400660ccda93d61f648aadb320d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// cs0668.cs: Two indexers have different names; the 'IndexerName' attribute must be used with the same name on every indexer within a type across the board.
// Line: 11

using System.Runtime.CompilerServices;
class A {
	[IndexerName ("Blah")]
	int this [int a] {
	get { return 1; }
	}
	
	int this [string b] {
	get { return 2; }
	}
}