[Mono-bugs] [Bug 75440][Cri] New - Default arguments do not work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 1 20:28:11 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 flgr at ccan.de.


--- shadow/75440	2005-07-01 20:28:11.000000000 -0400
+++ shadow/75440.tmp.25399	2005-07-01 20:28:11.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 75440
+Product: Mono: Compilers
+Version: unspecified
+OS Details: OS independent
+Status: NEW   
+Priority: Critical
+Component: JScript
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: flgr at ccan.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Default arguments do not work
+Description of Problem:
+If you specify no arguments to a method the missing values are not replaced
+with C#'s null. This breaks [1, 2, 3].join() and many more methods.
+Steps to reproduce the problem:
+1. Run attached test case.
+2. Compile via mjs.
+3. Run via mono.
+Actual Results:
+Unhandled Exception: System.Reflection.TargetParameterCountException:
+Number of parameter does not match expected count.
+Expected Results:
+Outputs 1,2,3
+How often does this happen? 
+Additional Information:
+I think this is also related to methods with a variable count arguments
+currently not working, but it has not yet been verified.

More information about the mono-bugs mailing list