Unexpected syntax error with Flow #9067
Labels
area: flow
Has PR
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
Bug Report
Current Behavior
Parsing this Flow code causes a syntax error in the latest release:
Specifically the type casting of the destructured array elements.
But it's accepted in Flow: link.
Expected behavior/code
It shouldn't be a syntax error.
Environment
Additional context/Screenshots
I think the issue was introduced in #8956.
The text was updated successfully, but these errors were encountered: