mirror of
https://github.com/apple/pkl.git
synced 2026-04-23 16:58:37 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user