facebook / facebook/flow

Array length mismatch when destructuring is not an error?

Open
#4,444 1 comment 0 reactions 0 assignees View on GitHub
bug Typing: tuple
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

It seems to me this should warn about *something* and not just silently allow `c = undefined`, thoughts?

const [a, b, c] = [1, 2];

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.