Files
Nim/tests/reject/tprocvar.nim
2013-03-16 23:53:07 +01:00

19 lines
207 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)