summary refs log blame commit diff stats
path: root/tests/async/tasync_noasync.nim
blob: 54f4f597ff66e3b1c7c3d4e0449600913928a4c0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           
                                                 
                    
                        









                                          
                                               
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