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:
Hiroki Noda 2018-06-28 00:07:26 +09:00 • committed by Andreas Rumpf
commit a85493610c
3 changed files with 26 additions and 7 deletions

View file

@ -0,0 +1,7 @@
discard """
file: "tinvalidintegerliteral1.nim"
line: 7
errormsg: "invalid number"
"""
echo 0b