]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: don't lose alias information during unification
authorRobert Griesemer <gri@golang.org>
Tue, 28 May 2024 17:53:44 +0000 (10:53 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 29 May 2024 02:09:51 +0000 (02:09 +0000)
commitee29dbe43eeb28a2834803e8e1275f1dccb18bc2
tree1b95a054041fa821ae61620d714c0fe85bdc483f
parentc26be72d686005167516333bf3dc2a52df3e2961
go/types, types2: don't lose alias information during unification

While at it, rename asTypeParam to asBoundTypeParam for clarity.

For #67547.
Fixes #67628.

Change-Id: I2f447c4cd4d72f5315fe9323d82fcb9bf33657c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/588797
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go
src/internal/types/testdata/fixedbugs/issue67628.go [new file with mode: 0644]