Skip to content

Commit

Permalink
修复跨域继承的类型会被误认为CLR中的兄弟类型
Browse files Browse the repository at this point in the history
  • Loading branch information
m1stm4o authored and liiir1985 committed Mar 31, 2023
1 parent caf315d commit 3ab761b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ILRuntime/CLR/TypeSystem/CLRType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ public bool CanAssignTo(IType type)
if (type is ILType)
return false;
Type cT = type != null ? type.TypeForCLR : typeof(object);
return TypeForCLR.IsAssignableFrom(cT);
return cT.IsAssignableFrom(TypeForCLR);
}
}

Expand Down

0 comments on commit 3ab761b

Please sign in to comment.