[Mono-bugs] [Bug 74932][Wis] Changed - Cast fails under MacOS 10.4
when it should succeed.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 24 14:25:00 EDT 2005
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 at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=74932
--- shadow/74932 2005-05-13 16:44:21.000000000 -0400
+++ shadow/74932.tmp.32257 2005-06-24 14:25:00.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 74932
Product: Mono: Runtime
Version: 1.1
OS: unknown
OS Details: Mac OS 10.4
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Wishlist
Component: JIT
AssignedTo: mono-bugs at ximian.com
ReportedBy: matthew at zeroc.com
QAContact: mono-bugs at ximian.com
@@ -94,6 +94,37 @@
B
B
This should be impossible because the second WriteLine should never
be reached.
+
+------- Additional Comments From bmaurer at users.sf.net 2005-06-24 14:25 -------
+For the following case:
+
+using System;
+
+class B {
+}
+
+class C : B {
+}
+
+class X {
+ static void Main () {
+ B b = new B ();
+ Console.WriteLine (b.GetType ());
+
+ C c = (C) b;
+ Console.WriteLine (c.GetType ());
+ }
+}
+
+I get:
+
+g5-mono:~ nbuilder$ mono x.exe
+B
+
+Unhandled Exception: System.InvalidCastException: Cannot cast from
+source type to destination type.
+in <0x00070> X:Main ()
+
More information about the mono-bugs
mailing list