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

@ -26,5 +26,5 @@ proc hop(): bool =
echo "done"
const r = hop()
const r {.used.} = hop()