renderer letAux fix only for octal literal (#12343)

* renderer letAux fix only for octal literal

* Handle when it's octal -1 for i64

* Added testcases
This commit is contained in:
Ridho Pratama 2019-10-08 16:12:24 +07:00 • committed by Andreas Rumpf
commit 7ef4bffa79
4 changed files with 77 additions and 6 deletions

View file

@ -9,6 +9,11 @@ runnableExamples:
# bug #11078
for x in "xx": discard
const
C_A* = 0x7FF0000000000000'f64
C_B* = 0o377'i8
C_C* = 0o277'i8
C_D* = 0o177777'i16
template foo*(a, b: SomeType) =
## This does nothing
@ -31,7 +36,7 @@ import std/macros
macro bar*(): untyped =
result = newStmtList()
var aVariable*: array[1,int]
var aVariable*: array[1, int]
aEnum()
bEnum()