tptrs.nim 132 B

123456789
  1. discard """
  2. errormsg: "type mismatch: got <ptr int16> but expected 'ptr int'"
  3. line: 8
  4. """
  5. var
  6. n: int16
  7. p: ptr int = addr n