added missing tests
This commit is contained in:
parent
e254741541
commit
bfef392460
13 changed files with 211 additions and 0 deletions
10
tests/tnestprc.nim
Executable file
10
tests/tnestprc.nim
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue