Skip to content

Conversation

@autarch
Copy link

@autarch autarch commented May 10, 2021

No description provided.

autarch added 2 commits May 10, 2021 13:38
If the anon struct embeds another struct _and_ contains fields of its own,
there were cases where the generated code would ignore the anon struct's own
fields.

This happened because when checking if the anon struct implements a marshaling
interface, the reflect package returns true if the anon struct's _embedded
struct_ implements that interface. But using that interface means that the
other fields in the anon struct are ignored.
@autarch autarch force-pushed the autarch/embedded-field-and-sibling-fix branch from b7d8b50 to 6ea728d Compare May 10, 2021 18:38
@autarch autarch marked this pull request as ready for review May 10, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant