// cs0592 : Attribute 'IndexerName' is not valid on this declaration type. It is valid on 'property' declarations only. // Line : 6 using System.Runtime.CompilerServices; [IndexerName("XXX")] class A { }