fixes #3636
This commit is contained in:
parent
8fb6865b24
commit
159a2ff955
4 changed files with 31 additions and 9 deletions
16
tests/iter/twrap_walkdir.nim
Normal file
16
tests/iter/twrap_walkdir.nim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue