]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] 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)
committerCherry Mui <cherryyz@google.com>
Wed, 21 Aug 2024 17:42:47 +0000 (17:42 +0000)
commit9166d2feec7c6fe5e4db802cca162745dac93488
treeda25edcb46e5c191cc5c44e2fb9849b3da156a37
parent76346b354337c7011eddef040de7696307450e41
[release-branch.go1.23] 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 #68894.

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/606656
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