commit | 8b913a1865e36d4bd105f29aa0b12264a4e03515 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Dec 14 21:26:33 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Dec 15 20:53:20 2020 +0000 |
tree | 371abe8d331a6c30ef3a4a0ccb19b17fc78f2849 | |
parent | 3e8f49a2137a87fdaba51c3002ddbe41ab18ed46 [diff] |
compiler: better error for unexpected digit A digit character is not invalid in general, but it's not permitted at the start of an identifier. Report a better error message. The test case is issue11359.go in the source repo. Change-Id: If8c55aba710419715a7932067023102f61efc742 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/278174 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>