Skip to content

Flow cannot parse conditional expression that includes assignment and arrow #8731

Open
@sosukesuzuki

Description

@sosukesuzuki

Flow version: 0.157.0

Expected behavior

Succeeds in parsing the following code

(a ? (b = c) : d => e);

Actual behavior

Failed to parse the above code

Additional Info

@babel/parser can parse the above code since 7.15.3 (ref: babel/babel#13655 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions