summary refs log tree commit diff stats
path: root/tests/closure/tissue1911.nim
blob: 311d991349536f0b1c03bb02795fe8e33e4c313a (plain) (blame)
1
2
3
4
5
6
7
proc foo(x: int) : auto =

  proc helper() : int = x
  proc bar() : int = helper()
  proc baz() : int = helper()

  return (bar, baz)