This commit is contained in:
Andreas Rumpf 2016-01-04 02:04:59 +01:00
commit 159a2ff955
4 changed files with 31 additions and 9 deletions

View file

@ -0,0 +1,16 @@
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