mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
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