Skip to content

Commit

Permalink
[642437] Nested types have to check type arguments only and not full …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
marek-safar authored and Andrew Jorgensen committed Sep 29, 2010
1 parent 2a308ef commit b175287
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions mcs/mcs/class.cs
Expand Up @@ -2632,14 +2632,9 @@ public override bool IsUnmanagedType ()
while (mt.IsPointer)
mt = TypeManager.GetElementType (mt);

if (mt.MemberDefinition == this) {
for (var p = Parent; p != null; p = p.Parent) {
if (p.Kind == MemberKind.Class) {
has_unmanaged_check_done = true;
return false;
}
}
continue;
if (mt.IsGenericOrParentIsGeneric || mt.IsGenericParameter) {
has_unmanaged_check_done = true;
return false;
}

if (TypeManager.IsUnmanagedType (mt))
Expand Down

0 comments on commit b175287

Please sign in to comment.