mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
* deprecate `0c`, `0C` prefix for octal literals Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for octal literals to bring the literals in line with the behavior of `parseOct` from parseutils. * add `msgKind` arg to `lexMessageLitNum` for deprecation messages * change literal tests to check all valid integer literals Also adds the `tinvaligintegerlit3` test to test for the (still) invalid `0O` prefix.
8 lines
159 B
Nim
8 lines
159 B
Nim
discard """
|
|
file: "tinvalidintegerliteral3.nim"
|
|
line: 7
|
|
errormsg: "0O5 is an invalid int literal; For octal literals use the '0o' prefix."
|
|
"""
|
|
|
|
echo 0O5
|