mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
18 lines
266 B
Nim
18 lines
266 B
Nim
discard """
|
|
action: compile
|
|
"""
|
|
|
|
import os
|
|
|
|
# bug #3636
|
|
|
|
proc fooIt(foo: string): iterator(): (string) =
|
|
iterator temp(): (string) =
|
|
for f in walkDirRec(foo): # No problem with walkFiles
|
|
yield f
|
|
return temp
|
|
|
|
let it = fooIt(".")
|
|
for x in it():
|
|
echo x
|