]> Cypherpunks repositories - gostls13.git/commit
go/constant: accept new Go2 number literals
authorRobert Griesemer <gri@golang.org>
Tue, 29 Jan 2019 23:41:50 +0000 (15:41 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 11 Feb 2019 23:24:27 +0000 (23:24 +0000)
commit1f701200d979d550e13f37e9be3da99b5a1304cb
tree656e2957de9e94e0813adfb3f590e86aaf614305
parent149d9de4b1e50d9f671c79264075f72fa01343e5
go/constant: accept new Go2 number literals

This CL introduces go/constant support for the new binary and octal integer
literals, hexadecimal floats, and digit separators for all number literals.

R=Go1.13

Updates #12711.
Updates #19308.
Updates #28493.
Updates #29008.

Change-Id: I7a55f91b8b6373ae6d98ba923b626d33c5552946
Reviewed-on: https://go-review.googlesource.com/c/160239
Reviewed-by: Russ Cox <rsc@golang.org>
src/go/constant/value.go
src/go/constant/value_test.go