]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: better error when method is missing due to ambiguity
authorRobert Griesemer <gri@golang.org>
Mon, 6 Mar 2023 21:05:29 +0000 (13:05 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 6 Mar 2023 21:22:00 +0000 (21:22 +0000)
commitc6cdfdabef7838800f79c1c1fd3b9841e41cdaf9
tree6183415c55ae22e162a45d872d99a14172b45c82
parentebc2aaae245be6a83f9b342f4c0147011c2fd423
go/types, types2: better error when method is missing due to ambiguity

If a type doesn't implement an interface due to an ambiguous method,
say so in the error message instead of just reporting a missing method.

Fixes #57352.

Change-Id: I5608f893c485de578b7f86362ca6f66033653695
Reviewed-on: https://go-review.googlesource.com/c/go/+/473658
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/lookup.go
src/go/types/lookup.go
src/internal/types/testdata/check/decls4.go
src/internal/types/testdata/fixedbugs/issue57352.go [new file with mode: 0644]