summary refs log blame commit diff stats
path: root/tests/tnestprc.nim
blob: b7326e032303a0c663c421735fbeb135f708b6d2 (plain) (tree)
1
2
3
4
5
6
7
8
9
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