Skip to content

Flow: anonymous arrow in if body #44

@wcjohnson

Description

@wcjohnson

The docs mention an example:

if fn(): x => 4

wherein fn(): x => 4 is parsed as a Flow annotated function and so the if is incomplete.

The docs suggest correcting:

if fn(): (x) => 4

But that doesn't work either!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions