tprocvarmismatch.nim 213 B

12345678910111213141516171819
  1. discard """
  2. errormsg: "type mismatch"
  3. line: 17
  4. file: "tprocvarmismatch.nim"
  5. """
  6. type
  7. TCallback = proc (a, b: int)
  8. proc huh(x, y: var int) =
  9. x = 0
  10. y = x+1
  11. proc so(c: TCallback) =
  12. c(2, 4)
  13. so(huh)