mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-17 10:34:53 +00:00
fixes #26124 The fix preserves the resolved static value, allowing constant folding. Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
8 lines
94 B
Nim
8 lines
94 B
Nim
proc u(k: static int) =
|
|
proc r(_: static int) =
|
|
while k > 0:
|
|
discard
|
|
r(0)
|
|
|
|
u(0)
|