[Mono-bugs] [Bug 80627][Maj] New - Compilation of indexer with params argument fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 25 19:36:27 EST 2007


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 phbaer at npw.net.

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

--- shadow/80627	2007-01-25 19:36:27.000000000 -0500
+++ shadow/80627.tmp.4505	2007-01-25 19:36:27.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 80627
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: Ubuntu with Mono 1.2.2.1 via Linux Installer for x86
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: phbaer at npw.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compilation of indexer with params argument fails
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+We've written an indexer with a variable-length parameter list (params).
+The getter works right out of the box, the setter doesn't. With Visual
+Studio .NET it works.
+
+Steps to reproduce the problem:
+1. Create an indexer with a params argument (public int this[params int[]
+x], for example)
+2. Create a get operation and use it somewhere
+3. Try to compile it
+
+Actual Results:
+t.cs(21,3): error CS1501: No overload for method `set_Item' takes `6' arguments
+t.cs(21,3): error CS1501: No overload for method `this' takes `5' arguments
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+No error
+
+How often does this happen? 
+Always with Mono <= 1.2.2.1
+
+Additional Information:
+There's a problem with the parameter list for the getter, I suppose. The
+the setter input value seems to be interpreted to be the (n+1)th argument.


More information about the mono-bugs mailing list