[Mono-bugs] [Bug 24186] New - explicit casting doesn't work on child classes.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
3 May 2002 16:05:10 -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 joe@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=24186
--- shadow/24186 Fri May 3 12:05:10 2002
+++ shadow/24186.tmp.24486 Fri May 3 12:05:10 2002
@@ -0,0 +1,25 @@
+Bug#: 24186
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: joe@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: explicit casting doesn't work on child classes.
+
+I have a class "A" which has the explicit casting operator overloaded to
+allow it to be casted to a class "X". I also have a class "Y" derived from
+"X", but the compiler won't allow me to cast from "A" to "Y", although it
+works for "A" to "X".
+
+Attached is a test program that shows the behavior. Works with csc, not
+with mcs.