[Mono-bugs] [Bug 74793][Nor] New - can't cast to certain types

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 2 May 2005 05:32:32 -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 toshok@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74793

--- shadow/74793	2005-05-02 05:32:32.000000000 -0400
+++ shadow/74793.tmp.5739	2005-05-02 05:32:32.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 74793
+Product: Mono: Debugger
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: backend
+AssignedTo: toshok@ximian.com                            
+ReportedBy: toshok@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: can't cast to certain types
+
+(mdb) print (object)ok
+Type System.Object is not a class type.
+(mdb) print (int)ok
+Type System.Int32 is not a class type.
+(mdb) print (string)ok
+Type System.String is not a class type.
+(mdb) print (Stream)ok
+Variable ok is not a class type.
+(mdb) quit
+
+
+Now, the error trying to cast to (int) might be correct, but "object" and
+"string" are definitely class/object types, and they should at least
+attempt to cast (and find that "ok" is not of a class type, like the cast
+to Stream does).