Fix return (#7225)

This commit is contained in:
Alexander Ivanov 2018-02-27 16:23:19 +02:00 • committed by Andreas Rumpf
commit 9c7374abcd
2 changed files with 10 additions and 6 deletions

View file

@ -17,6 +17,8 @@ proc e: int {.discardable.} =
proc x(e: int): Future[void] {.async.} =
var s = await y(e)
if e > 2:
return
echo s
e()