Skip to content

go/types, types2: update error message for untyped composite literals that can't be typed #80436

Description

@mrkfrmn

Moving from CL 794088:

var (
       _ = { /* ERROR "missing type in composite literal" */ }
       _ []int = {}
       _ struct{} = {}
      _ [10]byte = {1, 2, 3, 9: 10}
       _ map[string]int = {"foo": 0, "bar": 1}
)

We might want the error to say missing type for composite literal rather than in.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions