mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 23:54:19 +00:00
discardable async procs are now an error (#14176)
* add discard warning in manual
This commit is contained in:
@@ -26,5 +26,5 @@ proc hop(): bool =
|
||||
|
||||
echo "done"
|
||||
|
||||
const r = hop()
|
||||
const r {.used.} = hop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user