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

fix wrong error for iterators with no body and pragma macro #24440

Closed metagn closed 1 week ago

metagn commented 1 week ago

fixes #16413

semIterator checks if the original iterator passed to it has no body, but it should check the processed node created by semProcAux.

github-actions[bot] commented 1 week ago

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

Hint: mm: orc; opt: speed; options: -d:release 177696 lines; 8.908s; 653.516MiB peakmem