mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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