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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] @@ -94,6 +94,37 @@ B B This should be impossible because the second WriteLine should never be reached. + +------- Additional Comments From [EMAIL PROTECTED] 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 () + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
