tinteger_literals.nim 578 B

123456789101112131415
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "number out of range: '300'u8'"
  4. nimout: '''
  5. tinteger_literals.nim(12, 9) Error: number out of range: '18446744073709551616'u64'
  6. tinteger_literals.nim(13, 9) Error: number out of range: '9223372036854775808'i64'
  7. tinteger_literals.nim(14, 9) Error: number out of range: '9223372036854775808'
  8. tinteger_literals.nim(15, 9) Error: number out of range: '300'u8'
  9. '''
  10. """
  11. discard 18446744073709551616'u64 # high(uint64) + 1
  12. discard 9223372036854775808'i64 # high(int64) + 1
  13. discard 9223372036854775808 # high(int64) + 1
  14. discard 300'u8