-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array(n).fill(value) isn't typechecked #7887
Comments
Interestingly it works fine with |
ECMA says |
Array constructor is defined in OCaml code for some reason |
Lines 3068 to 3115 in f796b60
|
Not sure why it's not possible to typecheck it like this instead of doing this kind of hardcoding
|
With this code, Flow doesn't find the error:
I believe this is because the Array constructor returns an array of
any
items inflow/lib/core.js
Line 293 in f796b60
try link
The text was updated successfully, but these errors were encountered: