summary refs log tree commit diff stats
path: root/tests/generics/tgenericlambda.nim
blob: a71c592c59fb3f8359eec4db3f1e6af72c6032bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  output: "10\n10"
"""

proc test(x: proc (a, b: int): int) =
  echo x(5, 5)

test(proc (a, b): auto = a + b)

test do (a, b) -> auto: a + b