[typer] Make type inference more conservative
It's not entirely correct to infer arguments to (not) equals operator as primitives.
Sathya Gunasekaran committed
Jan 4, 2023 at 18:09 UTC
efac190973d0f427a83b2b15be9aeca1354501cd
1 file changed
-4
compiler/forget/src/HIR/InferTypes.ts
-4
@@ -25,10 +25,6 @@ function isPrimitiveBinaryOp(op: t.BinaryExpression["operator"]) {
25
case ">>":
26
case "<<":
27
case "^":
28
- case "==":
29
- case "==":
30
- case "!=":
31
- case "!=":
28
case ">":
29
case "<":
30
case ">=":