[Mono-bugs] [Bug 56442][Nor] New - delegate params wrong IL
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Apr 2004 21:49:49 -0500 (EST)
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 tazforever@dlfp.org.
http://bugzilla.ximian.com/show_bug.cgi?id=56442
--- shadow/56442 2004-04-03 21:49:49.000000000 -0500
+++ shadow/56442.tmp.20000 2004-04-03 21:49:49.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 56442
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: TazForEver@dlfp.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: delegate params wrong IL
+
+Mono C# compiler version 0.29.99.0
+
+public delegate void FOO(params object[] args);
+
+foo(new object[] {1, "spam", 3.14});
+// args is {1, "spam", 3.14}
+
+FOO f = new FOO(foo);
+f(new object[] {1, "spam", 3.14});
+// args is {{{1, "spam", 3.14}}
+
+doesn't behave the same way : f gets the given object[] as args[0].