timportedobj.nim 193 B

123456789101112131415
  1. discard """
  2. cmd: "nim c --gc:arc $file"
  3. action: "compile"
  4. """
  5. # bug #13269
  6. import posix
  7. proc foo*() =
  8. var last = newSeq[Stat]()
  9. var next = last
  10. for i in 0..3:
  11. last = next
  12. foo()