[Mono-bugs] [Bug 45415][Blo] Changed - System.Int32 is not a Subclass of according to Type.IsSubclassOf()

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 25 Jun 2003 12:42: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 miguel@ximian.com.


--- shadow/45415	Wed Jun 25 12:26:39 2003
+++ shadow/45415.tmp.24430	Wed Jun 25 12:42:16 2003
@@ -99,6 +99,28 @@
 TypeBuilders. I checked to see if mcs was mixing up the types being
 compiled with the types currently loaded and no, there is no mix up
 Miguel, comments ?
+------- Additional Comments From miguel@ximian.com  2003-06-25 12:42 -------
+Ah, this is very likely going to be a problem with the TypeBuilders in
+Maybe we need a TypeManager.IsSubclassOf (Type test_type, Type
+base_type) method that would do the right thing while compiling corlib.  
+bool IsSubclassOf (Type test_type, Type base_type)
+if (base_type== TypeManager.value_type){
+    if (test_type.IsValueType)
+       return true;
+return baes_type.IsSubclassOf (test_type);
+Then we need to change all the some_type.IsSubclassOf (base_type) to:
+some_type.IsSubclassOf (base_type)
+Can you try that?