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

Fixes #899 #910

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Fixes #899 #910

merged 1 commit into from
Jan 19, 2025

Conversation

lu4p
Copy link
Member

@lu4p lu4p commented Jan 19, 2025

@mvdan Can you write a proper commit message for this?

@mvdan
Copy link
Member

mvdan commented Jan 19, 2025

@lu4p thank you for coming up with a test case! I pushed what I think is a slightly better fix, with a commit message. Let me know what you think.

We only did this for Container in the type switch, but not for Struct.
The added test case panics otherwise.
Just like in the previous case, we still don't need to recurse
into type parameters for fieldToStruct to be filled correctly.

Fixes #899
@lu4p
Copy link
Member Author

lu4p commented Jan 19, 2025

@mvdan LGTM can't "approve" because it's my commit

@mvdan mvdan merged commit 9783320 into master Jan 19, 2025
4 checks passed
@mvdan mvdan deleted the typeParamFix branch January 19, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants