discardable async procs are now an error (#14176)

* add discard warning in manual
This commit is contained in:
hlaaftana 2020-05-01 10:49:13 +03:00 • committed by GitHub
commit 9b01c6cf48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 10 deletions

View file

@ -0,0 +1,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()