[Mono-bugs] [Bug 75753][Maj] New - VB Compiler doesn't allow access to default indexer using the Items[ind] call if it is overloaded.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 8 18:19:28 EDT 2005


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 bobby at optaros.com.

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

--- shadow/75753	2005-08-08 18:19:28.000000000 -0400
+++ shadow/75753.tmp.2890	2005-08-08 18:19:28.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75753
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bobby at optaros.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: VB Compiler doesn't allow access to default indexer using the Items[ind] call if it is overloaded.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+If you create a C# dll with a default indexer that is overloaded
+(HTTPSession is a good example), you cannot call obj.Items[ind]. The
+compiler gives an error. You can still call obj[ind] and make it work.
+
+
+Steps to reproduce the problem:
+1. Run 'doit.sh' inside the attached tgz file
+
+Actual Results:
+Compiler gets mean
+
+Expected Results:
+Compiler compiles and lets me call items.
+
+How often does this happen? 
+Always
+
+Additional Information:
+You can work around this by just calling obj[ind].
+I've fixed this in the compiler by editing mcs/mbas/ecore.cs and commenting
+out lines 593 and 594 in MemberLookup. I don't know if this was right, but
+it works for now.


More information about the mono-bugs mailing list