]> Cypherpunks repositories - gostls13.git/commit
go/types: add detail to missing method error messages
authorRebecca Stambler <rstambler@golang.org>
Wed, 15 Apr 2020 22:31:29 +0000 (18:31 -0400)
committerRebecca Stambler <rstambler@golang.org>
Thu, 16 Apr 2020 16:44:24 +0000 (16:44 +0000)
commit71a671839f95fb43091316c72cae87c049c81bce
tree0bcf169f88a680348a1eccce3fe47c7152f47927
parent4eaf855155acb2da69adbab7728c1a59b9315d41
go/types: add detail to missing method error messages

When a concrete type doesn't exactly implement an interface, the error
messages produced by go/types are often unhelpful. The compiler shows
the expected signature versus the one found, which is useful, so add
this behavior here.

Fixes golang/go#38475

Change-Id: I8b780b7e1f1f433a0efe670de3b1437053f42fba
Reviewed-on: https://go-review.googlesource.com/c/go/+/228457
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/expr.go
src/go/types/lookup.go
src/go/types/operand.go
src/go/types/testdata/issues.src