]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: be sure to type-check wrong methods in missingMethod
authorRob Findley <rfindley@google.com>
Fri, 12 May 2023 14:27:33 +0000 (10:27 -0400)
committerRobert Findley <rfindley@google.com>
Fri, 12 May 2023 14:53:44 +0000 (14:53 +0000)
commit2ce84c3a6e14bc2720ca635cb38cac565fab0d9b
tree5b6bd536c535b0a16657de7af4c1fe313c3ed5a8
parented3ea520812e314b2948ae39267105fa517bd9fe
go/types, types2: be sure to type-check wrong methods in missingMethod

In the case of a wrong method, we were not ensuring that it was
type-checked before passing it to funcString.

Formatting the missing method error message requires a fully set-up
signature.

Fixes #59848

Change-Id: I1467e036afbbbdd00899bfd627a945500dc709c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/494615
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/compile/internal/types2/lookup.go
src/go/types/lookup.go
src/internal/types/testdata/fixedbugs/issue59848.go [new file with mode: 0644]