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:
1 parent
1cc20b611f
commit
b993cc3bb1
1 file changed
+1
-1
@@ -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