mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[typer] Make type inference more conservative
It's not entirely correct to infer arguments to (not) equals operator as primitives.
This commit is contained in:
1 parent
09bdf3553f
commit
efac190973
1 file changed
-4
@@ -25,10 +25,6 @@ function isPrimitiveBinaryOp(op: t.BinaryExpression["operator"]) {
|
||||
case ">>":
|
||||
case "<<":
|
||||
case "^":
|
||||
case "==":
|
||||
case "==":
|
||||
case "!=":
|
||||
case "!=":
|
||||
case ">":
|
||||
case "<":
|
||||
case ">=":
|
||||
|
||||
Reference in new issue
Block a user