* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / errors / cs0609.cs
1 // cs0609.cs: Cannot set the `IndexerName' attribute on an indexer marked override
2 // Line: 15
3
4 using System.Runtime.CompilerServices;
5
6 class BaseClass {
7         protected virtual bool this[int index] {
8                 get {
9                         return true;
10                 }
11         }
12 }
13
14 class DerivedClass: BaseClass {
15         [IndexerName("Error")]
16         protected override bool this[int index] {
17                 get {
18                         return false;
19                 }
20         }
21 }
22