mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
15 lines
296 B
Nim
15 lines
296 B
Nim
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 |