Files
Nim/tests/async/tasync_nofuture.nim
Alexander Ivanov 56584414f3 Make await a template (#12085)
* Make await a template
* Generate await inside async/multisync
2020-04-25 20:27:03 +02:00

12 lines
165 B
Nim

discard """
errormsg: "await expects Future[T], got int"
cmd: "nim c $file"
file: "asyncmacro.nim"
"""
import async
proc a {.async.} =
await 0
waitFor a()