[Mono-bugs] [Bug 33532][Cos] New - NullReferenceException when using params with inproper casts

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
9 Nov 2002 17:29:48 -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 mathias.hasselmann@gmx.de.

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

--- shadow/33532	Sat Nov  9 12:29:48 2002
+++ shadow/33532.tmp.32360	Sat Nov  9 12:29:48 2002
@@ -0,0 +1,30 @@
+Bug#: 33532
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 7.3
+OS Details: kernel 2.4.20-pre10acpi20021002
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mathias.hasselmann@gmx.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException when using params with inproper casts
+
+mcs 0.16 and mcs from 20020908 anoncvs yilt a NullReferenceException when
+trying to compile following code:
+
+class TestCase
+{
+    public struct JValue { int val; }
+    static void TriggerTheBug(params JValue[] args) {}
+    public static void Main() { TriggerTheBug(23); }
+}
+
+Expected behaviour would be an error message expressing that there is no
+implicit conversion from "int" to "JValue".