Nim/tests/reject/tprocvar.nim
2011-07-10 15:48:13 +02:00

18 lines
207 B
Nim
Executable file

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)