Fix return (#7225)
This commit is contained in:
parent
0a8684db4c
commit
9c7374abcd
2 changed files with 10 additions and 6 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue