[Mono-bugs] [Bug 63841][Nor] Changed - [PATCH] Type.GetElementType doesn't return null when expected

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 20 18:44:55 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=63841

--- shadow/63841	2004-11-08 12:16:15.000000000 -0500
+++ shadow/63841.tmp.19427	2005-05-20 18:44:55.000000000 -0400
@@ -10,13 +10,13 @@
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: priewasser at gmx.at               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: grompf at sublimeintervention.com,lupus at ximian.com,vargaz at freemail.hu
+Cc: grompf at sublimeintervention.com,lupus at ximian.com,miguel at ximian.com,vargaz at freemail.hu
 Summary: [PATCH] Type.GetElementType doesn't return null when expected
 
 Description of Problem:
 Type.GetElementType() returns not null if the current Type is not an array 
 or a pointer, or is not passed by reference, but the Type self.
 
@@ -82,6 +82,16 @@
 		Type et = t.GetElementType ();
 
 		Console.WriteLine (et == null ? "null" : et.ToString ());
 	}
 }
 
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-20 18:44 -------
+The enum issue is a matter of removing:
+
+	if (class->enumtype && class->enum_basetype) /* types that are
+modifierd typebuilkders may not have enum_basetype set */
+		return mono_type_get_object (mono_object_domain (type),
+class->enum_basetype);
+
+However, I am worried that this is used in MCS. Miguel, can you comment?


More information about the mono-bugs mailing list