summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0415.cs
blob: 915e8277b263b58b34899571ba547a7e0ca95e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0415: The `System.Runtime.CompilerServices.IndexerNameAttribute' 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 {} }
}