[Mono-bugs] [Bug 46565][Min] New - mcs allows IndexerNameAttribute on classes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 18 Jul 2003 07:42:23 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=46565

--- shadow/46565	Fri Jul 18 07:42:23 2003
+++ shadow/46565.tmp.17075	Fri Jul 18 07:42:23 2003
@@ -0,0 +1,35 @@
+Bug#: 46565
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs allows IndexerNameAttribute on classes
+
+Compile with --target library:
+
+-------
+using System.Runtime.CompilerServices;
+
+[IndexerName("XXX")]
+class A
+{
+}
+--------
+
+Actual results:
+Compilation succeeded
+
+Expected results:
+error CS0592: Attribute 'IndexerName' is not valid on this declaration
+type. It is valid on 'property' declarations only,