]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: make Checker.renameTParams work on any type
authorRobert Griesemer <gri@golang.org>
Thu, 4 May 2023 00:42:01 +0000 (17:42 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 4 May 2023 16:36:39 +0000 (16:36 +0000)
commit8dea63547035e2246e09ba96d0338ad9ba8b39ad
tree31b7c4d95bb145d7b9980a0a6d690028b4b2c5da
parent2c49bf89ed2aed91bae6a0869d30de927b4a2cbf
go/types, types2: make Checker.renameTParams work on any type

This permits the rewrite of type parameters in arbitrary types,
not just tuples.

Preparation for fixing #59956.
For #59338.

Change-Id: I9ccaac1f163051cb837cae2208763cafb1d239cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/492515
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/infer.go
src/go/types/call.go
src/go/types/infer.go