facebook / facebook/flow

Unary plus is not type checked

Aperta
#2,643 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
linter
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It's weird that Flows allows this:

``` js
const y: number = 1 + +{};
```

It's a good way to get unexpected `NaN` and usually is a mistake.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.