Infer boolean literals from strict equality comparisons of other literal types
Open
feature request
wishlist
- Dominant language
- Rust
- Stars
- 22.3k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
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 ;)
Contributor guide
Assessment
This issue has not been assessed yet.