]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: Named.cleanup must also handle *Alias types
authorRobert Griesemer <gri@golang.org>
Thu, 15 Aug 2024 23:07:04 +0000 (16:07 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 16 Aug 2024 13:54:51 +0000 (13:54 +0000)
commit818515fd3ec69a3276d7d9753c148d8103888582
treebe2461700bd29c6828aeb14b6d25cfec9383cbd2
parent527610763b882b56c52d77acf1b75c2f4233c973
go/types, types2: Named.cleanup must also handle *Alias types

Named.cleanup is called at the end of type-checking to ensure that
a named type is fully set up; specifically that it's underlying
field is not (still) a Named type. Now it can also be an *Alias
type. Add this case to the respective type switch.

Fixes #68877.

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