[Mono-bugs] [Bug 56180][Nor] New - mcs allows void [] foo
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Mar 2004 17:12:32 -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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56180
--- shadow/56180 2004-03-29 17:12:32.000000000 -0500
+++ shadow/56180.tmp.29263 2004-03-29 17:12:32.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 56180
+Product: Mono: Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vladimir@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs allows void [] foo
+
+mcs allows the following:
+
+==== bug21.cs ====
+using System;
+public class Driver {
+ public static void Foo (void [] notgood) { }
+ public static void Main () { }
+}
+
+csc bails with
+bug21.cs(4,27): error CS1536: Invalid parameter type 'void'
+and other spew.