mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-15 03:19:22 +00:00
…haracterization with--warning:ResultUsed:on
fixes #26062
> A return statement with no expression is shorthand for return result.
> ResultUsed: Warn about the usage of the built-in result variable.
> A procedure that does not have any return statement and does not use
the special result variable returns the value of its last expression.
(cherry picked from commit 0ec8682abe)