summary refs log blame commit diff stats
path: root/tests/global/tglobalforvar.nim
blob: af75df5c83f7918c6eb55d1676f3bbb55f649154 (plain) (tree)
1
2
3
4
5
6
7
 
                                              




                                          
var funcs: seq[proc (): int {.nimcall.}] = @[]
for i in 0..10:
  funcs.add((proc (): int = return i * i))

echo(funcs[3]())