mirror of
https://github.com/apple/pkl.git
synced 2026-07-08 14:05:17 +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
|
@Override
|
||||||
public final boolean doIsEquivalentTo(TypeNode other) {
|
public final boolean doIsEquivalentTo(TypeNode other) {
|
||||||
return other instanceof UIntTypeAliasTypeNode aliasTypeNode && mask == aliasTypeNode.mask;
|
return other instanceof IntMaskSlotTypeNode typeNode && mask == typeNode.mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user