Closed rsc closed 2 months ago
Similar Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Change https://go.dev/cl/595075 mentions this issue: go/types, types2: report type name in comp. literal error, if possible
Note that the plain x.B2 assignment prints a nice error mentioning VeryLongStruct by name.
In contrast, the same assignment in the struct literal prints the actual struct definition, which is too long to be useful. Saying
would be better.
/cc @griesemer