mirror of
https://github.com/apple/pkl.git
synced 2026-06-10 15:52:50 +02:00
Fix doIsEquivalentTo for IntMaskSlotTypeNode (#1664)
This fixes an internal optimization; doesn't result in a language-observable change, so no test case is introduced.
This commit is contained in:
@@ -2381,7 +2381,7 @@ public abstract class TypeNode extends PklNode {
|
||||
|
||||
@Override
|
||||
public final boolean doIsEquivalentTo(TypeNode other) {
|
||||
return other instanceof UIntTypeAliasTypeNode aliasTypeNode && mask == aliasTypeNode.mask;
|
||||
return other instanceof IntMaskSlotTypeNode typeNode && mask == typeNode.mask;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user