Skip to content

Parsing: confusion between Flow typecast and parenless if condition #22

@plexigras

Description

@plexigras
xor = (x, y) => (x or y) and not (x and y)
if x ~xor! y: z

trows unknown: Paren-free test expressions must be followed by braces or a colon. (3:15)

if x ~xor(y): z
if (x ~xor! y): z

both work

here the example in lscdiag

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions