Lexer: do not accept some invalid integer literals (#8089)
* Lexer: do not accept some invalid integer literals * Use Natural instead of uint, and result variable
This commit is contained in:
parent
559a7615ad
commit
a85493610c
3 changed files with 26 additions and 7 deletions
7
tests/lexer/tinvalidintegerliteral1.nim
Normal file
7
tests/lexer/tinvalidintegerliteral1.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
file: "tinvalidintegerliteral1.nim"
|
||||
line: 7
|
||||
errormsg: "invalid number"
|
||||
"""
|
||||
|
||||
echo 0b
|
||||
Loading…
Add table
Add a link
Reference in a new issue