await x where x is Fut var now reads after yield. Fixes #3964.
This commit is contained in:
parent
b22305758d
commit
1446dc87c3
2 changed files with 26 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ proc main() {.async.} =
|
|||
var file = openAsync(fn, fmAppend)
|
||||
await file.write("\ntest2")
|
||||
let errorTest = file.readAll()
|
||||
await errorTest
|
||||
echo await errorTest
|
||||
doAssert errorTest.failed
|
||||
file.close()
|
||||
file = openAsync(fn, fmRead)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue