Files
Nim/tests/async/tasync_noasync.nim
Andreas Rumpf dfd8a83f35 fixes #15804 (#15820)
* fixes #15804

* fix the existing test

* add the testcase for #15804

Co-authored-by: narimiran <narimiran@disroot.org>
2020-11-02 14:17:09 +01:00

16 lines
298 B
Nim

discard """
errormsg: "'yield' only allowed in an iterator"
cmd: "nim c $file"
file: "asyncmacro.nim"
"""
import async
proc a {.async.} =
discard
await a()
# if we overload a fallback handler to get
# await only available within {.async.}
# we would need `{.dirty.}` templates for await