facebook / facebook/flow

Unary plus is not type checked

Open
#2,643 7 comments 0 reactions 0 assignees View on GitHub
linter
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

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.

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.