Change information
Commit message:
go/types/typeutil: normalize instantiated callees
Callee and StaticCallee promise to return the generic declaration
for instantiated functions and methods. Generic method selections
instead return the synthetic method on the instantiated receiver.
Normalize function results to their Origin so both helpers honor
that contract. Update unusedresult diagnostics to use the generic
receiver name.
Fixes golang/go#80533
Change-Id: Ic0ccc9d09e3aaf5ed8ab8f3dd55fb501a17fc630
GitHub-Last-Rev: 75869bc2c0ab94131bfd25f65aeed139e7d9b072
GitHub-Pull-Request: golang/tools#660
Files:
- M go/analysis/passes/unusedresult/testdata/src/typeparams/typeparams.go
- M go/types/typeutil/callee_test.go
- M internal/typesinternal/classify_call.go
Change size: M
Delta: 3 files changed, 62 insertions(+), 3 deletions(-)
Branch: refs/heads/master