]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: deduplicate signatures with the context
authorRobert Griesemer <gri@golang.org>
Tue, 16 Nov 2021 16:22:53 +0000 (08:22 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 17 Nov 2021 04:31:35 +0000 (04:31 +0000)
commita17a21c190c3e3ea8e88af3e89ccb3c2f101c35b
tree31dc191f84095964c8c6fc5625da3aceb26c163d
parentfceca2c0f1ff21e1b2b0bf9960b776bb08e58d86
cmd/compile/internal/types2: deduplicate signatures with the context

This CL is a mostly clean port of CL 362801 from go/types to types2.
It deviates from go/types in some of the testing code because types2
already had made some of the changes.

It also re-introduces some empty lines that got lost in earlier CLs.

Change-Id: I0bebd68f0880fac61631a5d0c323a9f8ce853ac6
Reviewed-on: https://go-review.googlesource.com/c/go/+/364335
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/context.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/instantiate_test.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/typexpr.go