nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.63k stars 1.47k forks source link

fixes #24359; VM problem: dest register is not set with const-bound proc #24364

Closed ringabout closed 1 month ago

ringabout commented 1 month ago

fixes #24359

follow up https://github.com/nim-lang/Nim/pull/11076

It should not try to evaluate the const proc if the proc doesn't have a return value.

github-actions[bot] commented 1 month ago

Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 031ad957badd1d2f73318a3aec2fa50b4687634c

Hint: mm: orc; opt: speed; options: -d:release 175684 lines; 8.808s; 654.816MiB peakmem