]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: wrap Named.fromRHS into Named.rhs
authorMark Freeman <mark@golang.org>
Thu, 23 Oct 2025 16:15:21 +0000 (12:15 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 27 Oct 2025 18:47:38 +0000 (11:47 -0700)
commitd8a32f3d4b093d6a0d2235bf729bbef1d0b489d2
tree1333c3c50aad0d464c29abba2769c919fd115661
parentb2af92270f5e19c759b94912470a32b5e44a5b2e
go/types, types2: wrap Named.fromRHS into Named.rhs

In debug mode, the Named.rhs method asserts that Named is in a state
with Named.fromRHS populated.

This caught a missing call to Named.unpack in validtype, which has been
added.

Change-Id: Id3f95f78f03d98a6efe87af6ac24f2ac2e285f96
Reviewed-on: https://go-review.googlesource.com/c/go/+/714242
Auto-Submit: Mark Freeman <markfreeman@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/validtype.go
src/go/types/named.go
src/go/types/validtype.go