facebook / facebook/flow

Infer boolean literals from strict equality comparisons of other literal types

Open
#1,452 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.