[Mono-bugs] [Bug 35653][Nor] Changed - mcs does not resolve indexer properly

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
18 Dec 2002 17:49:49 -0000


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 martin@ximian.com.

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

--- shadow/35653	Sun Dec 15 20:21:45 2002
+++ shadow/35653.tmp.32457	Wed Dec 18 12:49:49 2002
@@ -1,14 +1,14 @@
 Bug#: 35653
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -48,7 +48,41 @@
 csc compiles indexer.cs without complaint. Also, the csc-compiled version does run 
 correctly under mono.
 
 ------- Additional Comments From mathpup@mylinuxisp.com  2002-12-15 20:21 -------
 Created an attachment (id=2983)
 Test case
+
+
+------- Additional Comments From martin@ximian.com  2002-12-18 12:49 -------
+using System;
+
+public class Base
+{
+	public string this[ int x ]
+	{
+		get { return "Base[int]"; }
+	}
+	
+
+}
+
+public class Derived: Base
+{
+	public string this[ string s ]
+	{
+		get { return "Derived[string]"; }
+	}
+}
+
+
+public class Testing
+{
+	public static void Main()
+	{
+		Derived a = new Derived();
+		Console.WriteLine( a[0] );
+		Console.WriteLine( a["x"] );
+	}
+}
+