[Mono-bugs] [Bug 44807][Nor] New - Don't allow [] access to an Array param
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 14 Jun 2003 13:49:06 -0400 (EDT)
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 mkestner@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44807
--- shadow/44807 Sat Jun 14 13:49:05 2003
+++ shadow/44807.tmp.11393 Sat Jun 14 13:49:06 2003
@@ -0,0 +1,28 @@
+Bug#: 44807
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mkestner@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Don't allow [] access to an Array param
+
+The following code:
+
+public void Foo (Array bar)
+{
+ object baz = bar[0];
+}
+
+errors out on csc because it is not legal to access an Array type by
+indexer. You have to cast to something like object[] first. mcs compiles
+this without error.