提交 b1752875 编写于 作者: M Marek Safar 提交者: Andrew Jorgensen

[642437] Nested types have to check type arguments only and not full class

上级 2a308efd
......@@ -2632,14 +2632,9 @@ namespace Mono.CSharp {
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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册