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).
As far as I'm concerned, there is no workaround for this situation.
>nim -v
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2021-10-24
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 62701cd3b92677c2014cf70b1cf5a5ba6e0468bf
active boot switches: -d:release -d:danger
Test
Result
Expected
As far as I'm concerned, there is no workaround for this situation.