tasync_noasync.nim 296 B

123456789101112131415
  1. discard """
  2. errormsg: "undeclared identifier: 'await'"
  3. cmd: "nim c $file"
  4. file: "tasync_noasync.nim"
  5. """
  6. import async
  7. proc a {.async.} =
  8. discard
  9. await a()
  10. # if we overload a fallback handler to get
  11. # await only available within {.async.}
  12. # we would need `{.dirty.}` templates for await