t22097.nim 177 B

123456789
  1. discard """
  2. errormsg: "for a 'var' type a variable needs to be passed; but 'uint16(x)' is immutable"
  3. """
  4. proc toUInt16(x: var uint16) =
  5. discard
  6. var x = uint8(1)
  7. toUInt16 x