[go] go/types, types2: check for composite literal type target

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jul 16, 2026, 3:53:37 PM (yesterday) Jul 16
to Mark Freeman, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, golang...@luci-project-accounts.iam.gserviceaccount.com, Robert Griesemer, golang-co...@googlegroups.com

Gopher Robot submitted the change with unreviewed changes

Unreviewed changes

1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: src/cmd/compile/internal/types2/literals.go
Insertions: 2, Deletions: 0.

The diff is too large to show. Please review the diff.
```
```
The name of the file: src/go/types/literals.go
Insertions: 2, Deletions: 0.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
go/types, types2: check for composite literal type target

This change checks for a type target for composite literals and performs
the appropriate type inference. Note that U is currently always nil; we
still need to pipe in the types for the relevant contexts. Thus, this
change is a no-op for now.

For #12854
Change-Id: I8517ef72da3b09328be5661021f700b6b00e5f1f
Reviewed-by: Robert Griesemer <g...@google.com>
Auto-Submit: Mark Freeman <markf...@google.com>
Files:
  • M src/cmd/compile/internal/types2/literals.go
  • M src/cmd/compile/internal/types2/version.go
  • M src/go/types/literals.go
  • M src/go/types/version.go
Change size: M
Delta: 4 files changed, 44 insertions(+), 10 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8517ef72da3b09328be5661021f700b6b00e5f1f
Gerrit-Change-Number: 794060
Gerrit-PatchSet: 10
Gerrit-Owner: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Mark Freeman <markf...@google.com>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages