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

* fix the existing test

* add the testcase for #15804

Co-authored-by: narimiran <narimiran@disroot.org>
(cherry picked from commit dfd8a83f35)
2020-11-05 09:17:29 +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