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:
Daniel Chao
2026-06-07 12:51:31 -07:00
committed by GitHub
parent 1cc20b611f
commit b993cc3bb1
@@ -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