corrected the index website
This commit is contained in:
parent
1af0601011
commit
ff3e80279b
2 changed files with 9 additions and 2 deletions
7
tests/compile/tglobalforvar.nim
Normal file
7
tests/compile/tglobalforvar.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
var funcs: seq[proc (): int] = @[]
|
||||
for i in 0..10:
|
||||
funcs.add((proc (): int = return i * i))
|
||||
|
||||
echo(funcs[3]())
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue