[Mono-bugs] [Bug 56465][Wis] New - The argument to the IndexerName attribute must be a valid identifier

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 13:28:31 -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 bmaurer@users.sf.net.

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

--- shadow/56465	2004-04-04 13:28:31.000000000 -0400
+++ shadow/56465.tmp.28645	2004-04-04 13:28:31.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 56465
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The argument to the IndexerName attribute must be a valid identifier
+
+We compile:
+public class MonthDays {
+   [System.Runtime.CompilerServices.IndexerName ("buggypo for you")]
+   public int this [int a] {
+      get {
+         return 0;
+      }
+   }
+
+   public static void Main ()
+   {
+	int i = new MonthDays () [1];
+   }
+}
+
+csc gives:
+C:\Inetpub\ftproot>csc t.cs
+t.cs(2,50): error CS0633: The argument to the IndexerName attribute must 
+be a
+        valid identifier
+
+PEVerify gives errors on the exe we generate.