Open
Description
(Status: referred from LanguageChange to Proposal. --adonovan)
Consider
type E struct {
A int
}
type T struct {
E
}
This works:
T{E: E{A: 1}}
This does not:
T{A: 1}
Makes some struct literals more verbose than they need be, and makes them asymmetrical to their usage (where you can access the embedded struct's fields directly).
Can we allow it?
(cc @bradfitz)
Metadata
Metadata
Assignees
Type
Projects
Status
Incoming