2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0609.cs
bloba837018f175a8b8423191d572371fee93c0ad625
1 // cs0609.cs: Cannot set the `IndexerName' attribute on an indexer marked override
2 // Line: 15
4 using System.Runtime.CompilerServices;
6 class BaseClass {
7 protected virtual bool this[int index] {
8 get {
9 return true;
14 class DerivedClass: BaseClass {
15 [IndexerName("Error")]
16 protected override bool this[int index] {
17 get {
18 return false;