custom integer literals bugfixes (#17499)

* custom integer literals bugfixes

* make nimsuggest compile again
This commit is contained in:
Andreas Rumpf 2021-03-24 22:29:42 +01:00 • committed by GitHub
commit 355985ac89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View file

@ -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"