commit | d186dde81844badfa961f8af5044136dce8dc39e | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Fri Apr 05 16:51:28 2024 -0400 |
committer | Gopher Robot <gobot@golang.org> | Fri Apr 05 22:09:57 2024 +0000 |
tree | ec01103a2b1846725cfa5f165106108eaacb323b | |
parent | 5ec7395afc5756e9334f969fcc8b538c83857634 [diff] |
go/types: fix bug in premature Unalias of alias cycle Unalias memoizes the result of removing Alias constructors. When Unalias is called too soon on a type in a cycle, the initial value of the alias, Invalid, gets latched by the memoization, causing it to appear Invalid forever. This change disables memoization of Invalid, and adds a regression test. Fixes #66704 Updates #65294 Change-Id: I479fe14c88c802504a69f177869f091656489cd4 Reviewed-on: https://go-review.googlesource.com/c/go/+/576975 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.