Fix lazy type checking of UInt types (#740)

For example, Listing<UInt16> is equivalent to Listing<UInt16>, but not to Listing<UInt32>.
This commit is contained in:
translatenix
2024-10-24 16:19:26 -07:00
committed by GitHub
parent 4b6bc7bb7c
commit 1ceb489d78
3 changed files with 45 additions and 1 deletions

View File

@@ -2153,7 +2153,7 @@ public abstract class TypeNode extends PklNode {
@Override
public boolean isEquivalentTo(TypeNode other) {
return other instanceof UIntTypeAliasTypeNode;
return other instanceof UIntTypeAliasTypeNode aliasTypeNode && mask == aliasTypeNode.mask;
}
@Override