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

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
16 Dec 2002 01:21:27 -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 mathpup@mylinuxisp.com.

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

--- shadow/35653	Sun Dec 15 20:21:27 2002
+++ shadow/35653.tmp.1364	Sun Dec 15 20:21:27 2002
@@ -0,0 +1,49 @@
+Bug#: 35653
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mathpup@mylinuxisp.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not resolve indexer properly
+
+Description of Problem: 
+ 
+When a base class declares an indexer with a single parameter of a particular type and a 
+derived class declares an indexer with a single parameter of a different type, the derived 
+class's indexer seems to hide the one in the base class.  
+ 
+Steps to reproduce the problem: 
+1. Compile the attached test case: mcs indexer.cs 
+ 
+ 
+Actual Results: 
+ 
+indexer.cs(27) error CS1502: The best overloaded match for method 'string 
+Derived.get_Item (string)' has some invalid arguments 
+indexer.cs(27) error CS1503: Argument 1: Cannot convert from 'int' to 'string' 
+ 
+ 
+Expected Results: 
+ 
+Successful compilation 
+ 
+ 
+How often does this happen?  
+ 
+Always 
+ 
+ 
+Additional Information: 
+ 
+csc compiles indexer.cs without complaint. Also, the csc-compiled version does run 
+correctly under mono.