Infer boolean literals from strict equality comparisons of other literal types
Aperta
feature request
wishlist
- Lingua principale
- Rust
- Stelle
- 22.3k
- Fork
- 1.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Wouldn't it be cool if `1 === 1` was inferred to have type `true` instead of `boolean`? Such a small, silly feature, how can we afford _not_ to have it? /cc @mroch ;)
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.