tcapture_static.nim 168 B

1234567891011121314
  1. discard """
  2. output: '''hi'''
  3. """
  4. # bug #4551
  5. proc foo() =
  6. let arr = ["hi"]
  7. for i, v in arr:
  8. let bar = proc =
  9. echo v
  10. bar()
  11. foo()