mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
11 lines
153 B
Nim
11 lines
153 B
Nim
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
|