mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
19 lines
205 B
Nim
19 lines
205 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 17
|
|
file: "tprocvar.nim"
|
|
"""
|
|
|
|
type
|
|
TCallback = proc (a, b: int)
|
|
|
|
proc huh(x, y: var int) =
|
|
x = 0
|
|
y = x+1
|
|
|
|
proc so(c: TCallback) =
|
|
c(2, 4)
|
|
|
|
so(huh)
|
|
|