summary refs log tree commit diff stats
path: root/tests/ccgbugs/t2procs.nim
blob: d8b7a2815a7cb6c8f06b804fc0f8fccf82e26b03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  output: '''before
1
before
2'''
"""

proc fn[T1, T2](a: T1, b: T2) =
  a(1)
  b(2)

fn( (proc(x: int) =
      echo "before" # example block, can span multiple lines
      echo x),
    (proc (y: int) =
      echo "before"
      echo y)
)