diff options
| author | Robert Griesemer <gri@golang.org> | 2023-10-31 14:22:05 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-02 12:56:53 +0000 |
| commit | 285ac5a11e36ca4d85a7e97c9040a1e3de0ecc11 (patch) | |
| tree | 51c684ab5a10f0569163ffe6e2413d8085dabf37 /src/runtime/testdata | |
| parent | 54452b963c16834935b0589897b9ced9c4066a0d (diff) | |
| download | go-285ac5a11e36ca4d85a7e97c9040a1e3de0ecc11.tar.xz | |
go/parser: better error messages for incorrect type parameter list
This is a port of CL 538856 from the syntax parser to go/parser.
As part of the port, make more portions of parseParameterList
matching the equivalent paramList method (from the syntax parser).
As a result, this now also produces a better error message in cases
where the missing piece might not be a type parameter name but a
constraint (this fixes a TODO in a test).
Improve comments in the code and adjust the corresponding comments
in the syntax parser.
Change references to issues to use the format go.dev/issue/ddddd.
For #60812.
Change-Id: Ia243bd78161ed8543d3dc5deb20ca4a215c5b1e4
Reviewed-on: https://go-review.googlesource.com/c/go/+/538858
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/testdata')
0 files changed, 0 insertions, 0 deletions
