Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
println 09
This code will cause a NPE, because it will be evaluated as println 0 9, which is evaluated as println(0).9. This happens because the leading zero introduces an octal, but 09 is no octal. The parser no falsely accepts 0 as valid number and does not recognize that 09 is supposed to be a single number anymore.
The expected behaviour is a compile time failure.
Daniel, can we fix that in parrot?