t22548.nim 241 B

12345678910111213141516171819202122
  1. discard """
  2. action: compile
  3. """
  4. type Xxx[T] = object
  5. iterator x(v: string): char =
  6. var v2: Xxx[int]
  7. var y: v2.T
  8. echo y
  9. proc bbb(vv: string): proc () =
  10. proc xxx() =
  11. for c in x(vv):
  12. echo c
  13. return xxx
  14. bbb("test")()