tinout.nim 205 B

123456789101112131415
  1. discard """
  2. errormsg: "type mismatch: got <int literal(3)>"
  3. file: "tinout.nim"
  4. line: 12
  5. """
  6. # Test in out checking for parameters
  7. proc abc(x: var int) =
  8. x = 0
  9. proc b() =
  10. abc(3) #ERROR
  11. b()