Possibility to call non-existing method on array element without explicit 'any' #8593
Labels
bug
Typing: soundness
No false negatives (type checker claims that there is no error in the incorrect program)
Flow version: 0.145.0
Expected behavior
Any sort of static checking error.
Actual behavior
JS runtime error:
c.bark is not a function
Adding explicit type annotation to
arr1
leads to type error (expected behavior).Try Flow reproduction
The text was updated successfully, but these errors were encountered: