diff options
author | Robert Griesemer <gri@golang.org> | 2019-01-29 16:00:45 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2019-02-11 23:24:49 +0000 |
commit | 257f30433b66c0ec992fe36ccd5403580a7cbced (patch) | |
tree | 7ea27735accb466daa8331c686fa6561e9f6f119 /src/go/types/check_test.go | |
parent | 1f701200d979d550e13f37e9be3da99b5a1304cb (diff) | |
download | go-257f30433b66c0ec992fe36ccd5403580a7cbced.tar.gz go-257f30433b66c0ec992fe36ccd5403580a7cbced.zip |
go/types: add tests for new Go 2 number literals
This CL ensures that go/types can now handle the new
Go 2 number literals. The relevant changes enabling
them in go/types were made in go/constant in the CL
https://golang.org/cl/160239.
R=Go1.13
Updates #12711.
Updates #19308.
Updates #28493.
Updates #29008.
Change-Id: I45c1387198fac94769ac59c5301d86b4e1a1ff98
Reviewed-on: https://go-review.googlesource.com/c/160240
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/go/types/check_test.go')
-rw-r--r-- | src/go/types/check_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/go/types/check_test.go b/src/go/types/check_test.go index 45e1fcb605..358e7c5cc8 100644 --- a/src/go/types/check_test.go +++ b/src/go/types/check_test.go @@ -88,6 +88,7 @@ var tests = [][]string{ {"testdata/stmt1.src"}, {"testdata/gotos.src"}, {"testdata/labels.src"}, + {"testdata/literals.src"}, {"testdata/issues.src"}, {"testdata/blank.src"}, {"testdata/issue25008b.src", "testdata/issue25008a.src"}, // order (b before a) is crucial! |