mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-03 12:20:27 +00:00
...introduced by me in #24792. Sorry. This fix doesn't avoid copying the `restrictedBody` twice in the generated code but has the benefit of working. Proper fix needs a detection that can set a const bool for a module once. `when nimvm` is restricted in use and is difficult to dance around. Some details in: #12517, #12518, #13038 I might have copied the buggy solution from some discussion and it might have worked at some point, but it's small excuse.