removed below.
svn path=/trunk/mcs/; revision=42898
+2005-04-13 Raja R Harinath <rharinath@novell.com>
+
+ * typemanager.cs (IsUnmanagedType): Restore !IsValueType check
+ removed below.
+
2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : detect ambiguous reference to overloaded members.
"finally clause");
return false;
} else {
- Console.WriteLine ("Not in finally");
+ Report.Debug ("Not in finally");
}
if (ec.InUnsafe) {
if (t.IsArray)
return IsUnmanagedType (t.GetElementType ());
+ if (!IsValueType (t))
+ return false;
+
if (t is TypeBuilder){
TypeContainer tc = LookupTypeContainer (t);
-
if (tc.Fields == null)
return true;
foreach (Field f in tc.Fields){
// Avoid using f.FieldBuilder: f.Define () may not yet have been invoked.
if ((f.ModFlags & Modifiers.STATIC) != 0)
continue;
+ if (f.MemberType == null)
+ continue;
if (!IsUnmanagedType (f.MemberType))
return false;
}