]> Cypherpunks repositories - gostls13.git/commit
go/types, types: always record a type for inner composite literals
authorRobert Griesemer <gri@golang.org>
Wed, 2 Oct 2024 00:04:51 +0000 (17:04 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 2 Oct 2024 20:14:11 +0000 (20:14 +0000)
commit95936844387c0158b773afa4ee6f99bd430791cf
tree5dfc14d7c355baf89ade3d59fd710dd1eeed2bb2
parent5b0f8596b766afae9dd1f117a4a5dcfbbf1b80f1
go/types, types: always record a type for inner composite literals

Ensure that inner composite literals get a (possibly invalid) type
if something goes wrong with the enclosing composite literal.

Fixes #69092.

Change-Id: Ib1d2d529c4683ea3ab1799a818b43538e152ae8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/616616
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/compile/internal/types2/issues_test.go
src/cmd/compile/internal/types2/literals.go
src/go/types/issues_test.go
src/go/types/literals.go