tglobalforvar.nim 153 B

12345678910
  1. discard """
  2. output: 100
  3. """
  4. var funcs: seq[proc (): int {.nimcall.}] = @[]
  5. for i in 0..10:
  6. funcs.add((proc (): int = return i * i))
  7. echo(funcs[3]())