Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Issue with await in switch statement #55
The following code:
foo = (callback) -> do callback console.log 1 switch 'asd' when 'foo' await foo defer() when 'bar' x = 1 console.log 2
Outputs only "1" while it should output a "2" too. If you put a:
when 'asd' x = 2
In the switch, then it works fine. But if none of the cases are matched, then Iced "blocks".