discardable async procs are now an error (#14176)
* add discard warning in manual
This commit is contained in:
parent
d5fc35c968
commit
9b01c6cf48
4 changed files with 26 additions and 10 deletions
|
|
@ -26,5 +26,5 @@ proc hop(): bool =
|
|||
|
||||
echo "done"
|
||||
|
||||
const r = hop()
|
||||
const r {.used.} = hop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue