Loop guards (`when`, `case`, `|`) don't work with `for..let` loops with `yield` (or `async`) in their bodies #1023
Labels
Comments
Also another effect of #1019. |
pepkin88
added a commit
to pepkin88/LiveScript
that referenced
this issue
Jul 29, 2018
rhendric
added a commit
that referenced
this issue
Jul 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
Result:
Expected result:
I chose an example with
own
, because it also inserts its own kind of guard and it seems to be working correctly. A guard for a loop withasync
doesn't work either, but I think it's related to #1021.Other
for..let
variants seem to be OK, those with an else block too.The text was updated successfully, but these errors were encountered: