aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2023-10-31 14:22:05 -0700
committerGopher Robot <gobot@golang.org>2023-11-02 12:56:53 +0000
commit285ac5a11e36ca4d85a7e97c9040a1e3de0ecc11 (patch)
tree51c684ab5a10f0569163ffe6e2413d8085dabf37 /src/runtime
parent54452b963c16834935b0589897b9ced9c4066a0d (diff)
downloadgo-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')
0 files changed, 0 insertions, 0 deletions