[Mono-bugs] [Bug 44807][Nor] Changed - Don't allow [] access to an Array param
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 24 Jun 2003 00:14:36 -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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44807
--- shadow/44807 Sat Jun 14 13:49:06 2003
+++ shadow/44807.tmp.27447 Tue Jun 24 00:14:36 2003
@@ -1,14 +1,14 @@
Bug#: 44807
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: mkestner@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -23,6 +23,21 @@
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.
+
+------- Additional Comments From miguel@ximian.com 2003-06-24 00:14 -------
+using System;
+class X {
+
+public void Foo (Array bar)
+{
+ object baz = bar[0];
+}
+
+ static void Main () {}
+}
+
+
+Full sample