Skip to content

for..else doesn't work with the implicit for array variant #1035

@pepkin88

Description

@pepkin88

Compiling this:

for [1 2 3]
  ..
else 0

gives an error Parse error on line 3: Unexpected 'ELSE'.

Working examples:

for n in [1 2 3]
  n
else 0
for [1 2 3] when 1
  ..
else 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions