Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pepkin88 opened this issue Mar 29, 2018 · 0 comments · Fixed by #1036 · May be fixed by rugk/ethercalc#4
Closed

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

pepkin88 opened this issue Mar 29, 2018 · 0 comments · Fixed by #1036 · May be fixed by rugk/ethercalc#4
Labels

Comments

@pepkin88
Copy link
Contributor

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
@rhendric rhendric added the bug label Mar 29, 2018
rhendric added a commit to rhendric/LiveScript that referenced this issue Mar 29, 2018
@rhendric rhendric mentioned this issue Mar 29, 2018
rhendric added a commit that referenced this issue Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants