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

cs0415.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c478a7ff3d775359c4fb769ce30147bbfc6c4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0415: The 'IndexerName' attribute is valid only on an indexer that is not an explicit interface member declaration
// Line: 11

using System.Runtime.CompilerServices;

interface A {
	int this [int a] { set; }
}

class X : A {
        [IndexerName("Error")]
	int A.this [int a] { set {} }
}