make run the default action of a test in tester

This commit is contained in:
Arne Döring 2018-11-13 15:21:14 +01:00 • committed by Araq
commit 031bfdec6f
50 changed files with 313 additions and 46 deletions

View file

@ -1,7 +1,9 @@
discard """
output: 100
"""
var funcs: seq[proc (): int {.nimcall.}] = @[]
for i in 0..10:
funcs.add((proc (): int = return i * i))
echo(funcs[3]())