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
parent d5fc35c968
commit 9b01c6cf48
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()