summary refs log blame commit diff stats
path: root/tests/compile/tnestedproc.nim
blob: 49ec6f9a7fb0b10d26d926c6249069266c874270 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                   
discard """
  output: "11"
"""

proc p(x, y: int): int = 
  result = x + y

echo p((proc (): int = 
          var x = 7
          return x)(),
       (proc (): int = return 4)())