custom integer literals bugfixes (#17499)
* custom integer literals bugfixes * make nimsuggest compile again
This commit is contained in:
parent
5f5a92379f
commit
355985ac89
4 changed files with 14 additions and 6 deletions
|
|
@ -51,6 +51,9 @@ template main =
|
|||
doAssert x() == minusOne:
|
||||
"unable to handle negatives after semi-colon"
|
||||
|
||||
doAssert -0b111 == -7
|
||||
doAssert -0xff == -255
|
||||
|
||||
block: # check when a minus (-) is an unary op
|
||||
doAssert -one == minusOne:
|
||||
"unable to a negative prior to identifier"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue