added missing tests

This commit is contained in:
Andreas Rumpf 2009-12-07 01:24:27 +01:00
commit bfef392460
13 changed files with 211 additions and 0 deletions

10
tests/tnestprc.nim Executable file
View file

@ -0,0 +1,10 @@
# Test nested procs without closures
proc Add3(x: int): int =
proc add(x, y: int): int {.noconv.} =
result = x + y
result = add(x, 3)
echo Add3(7) #OUT 10