]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: add missing Unalias calls (clarification)
authorRobert Griesemer <gri@golang.org>
Tue, 21 May 2024 21:35:14 +0000 (14:35 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 21 May 2024 22:01:56 +0000 (22:01 +0000)
commit816b6031febc51692eb667df7498f3b2332987fa
tree127b3b1b2548cc4566c79cb4c35d826210247dfc
parent7164fad87a3be06220771f2ae497cb15ef467e31
go/types, types2: add missing Unalias calls (clarification)

This change adds an Unalias call in applyTypeFunc and arrayPtrDeref.
At the moment this doesn't change anything or fix any bugs because
of the way these two functions are invoked, but that could change
in the future.

Also, manually reviewed all type assertions to Type types.

Excluding assertions to type parameters, no obvious issues
were found except for #67540 for which a separate fix is pending.

There are potential issues with assertions type parameters
which will be addressed in a follow-up CL.

For #67547.

Change-Id: I312268dc5e104f95b68f115f00aec3ec4c82e41f
Reviewed-on: https://go-review.googlesource.com/c/go/+/587156
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/builtins.go
src/go/types/builtins.go