aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-09-26 21:27:20 -0700
committerRobert Griesemer <gri@google.com>2022-09-27 21:59:19 +0000
commit7398c3c0c6d66a95d0c29c8fa59322e675ce7c86 (patch)
tree550cd4a633b96c4b5ac9f00db0aa6e7e561a6fa8 /src/encoding/xml
parentb16501c08b37235a67e2fc5b506f169152db57ae (diff)
downloadgo-7398c3c0c6d66a95d0c29c8fa59322e675ce7c86.tar.xz
cmd/compile: use "method T.m already declared" for method redeclaration errors
Compromise between old compiler error "T.m redeclared in this block" (where the "in this block" is not particularly helpful) and the old type-checker error "method m already declared for type T ...". In the case where we have position information for the original declaration, the error message is "method T.m already declared at <position>". The new message is both shorter and more precise. For #55326. Change-Id: Id4a7f326fe631b11db9e8030eccb417c72d6c7db Reviewed-on: https://go-review.googlesource.com/c/go/+/435016 Run-TryBot: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions