All ints are parsed in base 10
qzb opened this issue · 0 comments
qzb commented
Octal and hexadecimal numbers are partially supported (by scanner), but always parsed in base 10.
Expected:
fmt := import("fmt")
fmt.println(0123) // 83
fmt.println(123) // 123
fmt.println(0x123) // 291
Actual:
fmt := import("fmt")
fmt.println(0123) // 123
fmt.println(123) // 123
fmt.println(0x123) // 0