Skip to content

Commit a95d9fb

Browse files
committed
Fix doIsEquivalentTo for IntMaskSlotTypeNode
This fixes an internal optimization; doesn't result in a language-observable change, so no test case is introduced.
1 parent 1cc20b6 commit a95d9fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkl-core/src/main/java/org/pkl/core/ast/type/TypeNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ public final VmTyped getMirror() {
23812381

23822382
@Override
23832383
public final boolean doIsEquivalentTo(TypeNode other) {
2384-
return other instanceof UIntTypeAliasTypeNode aliasTypeNode && mask == aliasTypeNode.mask;
2384+
return other instanceof IntMaskSlotTypeNode typeNode && mask == typeNode.mask;
23852385
}
23862386

23872387
@Override

0 commit comments

Comments
 (0)