[Mono-bugs] [Bug 59286][Wis] New - object o = (T [][]) (object) (new A [][] {}); fails
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 21:33:16 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=59286
--- shadow/59286 2004-05-28 21:33:16.000000000 -0400
+++ shadow/59286.tmp.23724 2004-05-28 21:33:16.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 59286
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: object o = (T [][]) (object) (new A [][] {}); fails
+
+using System;
+
+class A : T {}
+class T {
+ static void Main ()
+ {
+ object o = (T [][]) (object) (new A [][] {});
+ }
+}
+
+Throws a cast exception.