Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic on embedded struct with recursive #483

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NgoKimPhu
Copy link

@NgoKimPhu NgoKimPhu commented Nov 3, 2023

This PR fixes #459 (panic on embedded struct with recursive) and #468 which is caused by a missing population of anonymous struct fields into encoder.compileContext.structTypeToCodes in the logic of encoder.StructCode.ToAnonymousOpcode.

@NgoKimPhu NgoKimPhu force-pushed the fix/recurse-anonymous-panic branch from 2cfcb0c to 078b728 Compare November 4, 2023 03:42
@NgoKimPhu NgoKimPhu force-pushed the fix/recurse-anonymous-panic branch from 078b728 to b7136cc Compare November 4, 2023 03:45
@njucjc
Copy link

njucjc commented Aug 2, 2024

ready to merge, I meet same issue

@hanord
Copy link

hanord commented Dec 13, 2024

I've seen the same issue @goccy and can confirm that the PR did fix the issue for us.
Is there a reason it wasn't included in 0.10.4?

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.

[Bug] panic on embedded struct with recursive
3 participants