Files
Nim/tests/closure
ringabout 31d64b57d5 fixes #25046; Infinite loop with anonymous iterator (#25221)
fixes #25046

```nim
proc makeiter(v: string): iterator(): string =
  return iterator(): string =
    yield v

# loops
for c in makeiter("test")():
  echo "loops ", c
```
becomes

```nim
var temp = makeiter("test")
for c in temp():
  echo "loops ", c
```
for closures that might have side effects
2025-10-15 12:11:15 +02:00
..
2017-10-16 14:04:36 +03:00
2023-08-27 22:56:50 +08:00
2020-11-02 14:16:33 +01:00
2023-08-28 12:31:16 +08:00
2018-12-06 08:06:54 +01:00