await x where x is Fut var now reads after yield. Fixes #3964.

This commit is contained in:
Dominik Picheta 2016-04-04 22:50:31 +01:00
commit 1446dc87c3
2 changed files with 26 additions and 6 deletions

View file

@ -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)