Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes strictdefs with
when nimvm
(#24409)
ref #24225 related #24306 > Code in branches must not affect semantics of the code that follows the `when nimvm` statement. E.g. it must not define symbols that are used in the following code. The test shouldn't have passed when #24306 would be implemented somehow. Some third packages have already misused `when nimvm` by defining symbols in the other branch of `when nimvm`. e.g. in status-im/nim-unittest2#34 ```nim when nimvm: discard else: let suiteName {.inject.} = nameParam use(suiteName) ```
- Loading branch information