mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
17 lines
236 B
Nim
17 lines
236 B
Nim
|
|
|
|
|
|
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
|