summary refs log blame commit diff stats
path: root/tests/async/tdiscardableproc.nim
blob: 80286ece0e547215d838e7994154d8f594df36df (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                 
discard """
  errmsg: "Cannot make async proc discardable. Futures have to be checked with `asyncCheck` instead of discarded"
"""

import async

proc foo {.async, discardable.} = discard

foo()