[#300] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Stephane | Martin | fixed | 2004-03-01 18:22:18.0 | |
subject | Integer literal not accepted | |||
code |
object bug { val min_int = -2147483648; val min_long = -9223372036854775808L; } |
|||
what happened | test.scala:3: integer number too large val min_int = -2147483648; ^ test.scala:4: integer number too large val min_long = -9223372036854775808L; ^ two errors found |
|||
what expected | no compiler error (as in Java) | |||
[back to overview] |
Stephane edited on 2004-03-15 16:27:02.0 |
now takes sign into account when testing bounds of numeric values |
Stephane edited on 2004-03-15 16:28:35.0 |