summary refs log tree commit diff stats
path: root/tests/async/tdiscardableproc.nim
blob: 93cd83be92c81a195f0fb6483424bc320331a53c (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
  errormsg: "Cannot make async proc discardable. Futures have to be checked with `asyncCheck` instead of discarded"
"""

import async

proc foo {.async, discardable.} = discard

foo()