summary refs log tree commit diff stats
path: root/tests/async/tasync_noasync.nim
blob: 812b40da6619bd03bf701cfcf24ef13179477b64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  errormsg: "undeclared identifier: 'await'"
  cmd: "nim c $file"
  file: "tasync_noasync.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