summary refs log tree commit diff stats
path: root/tests/iter/twrap_walkdir.nim
blob: 1d52e9791cd90931f502feea0d115bfd46521811 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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