Commit 4d0d8af
committed
Only allow leading 0 in numbers for octal literals
This is more restrictive than what the reader actually allows. The
following are all legal, and are evaluated as base-10:
090M
09e9
09.9
09/08
Only 090 and 090N literals are errors.
It's bad form to be writing literal numbers with leading zeroes unless
you mean it to be octal, so we won't condone their use.1 parent b3367cc commit 4d0d8af
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments