diff options
Diffstat (limited to 'tests/proc/tnestprc.nim')
-rw-r--r-- | tests/proc/tnestprc.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/proc/tnestprc.nim b/tests/proc/tnestprc.nim index c10ad6abf..9b3c33d5e 100644 --- a/tests/proc/tnestprc.nim +++ b/tests/proc/tnestprc.nim @@ -4,12 +4,12 @@ discard """ """ # Test nested procs without closures -proc Add3(x: int): int = - proc add(x, y: int): int {.noconv.} = +proc Add3(x: int): int = + proc add(x, y: int): int {.noconv.} = result = x + y - + result = add(x, 3) - + echo Add3(7) #OUT 10 |