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 jsonutils macro with generic case object #24429

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Nov 12, 2024

split from #24425

The added test did not work previously. The result of getTypeImpl is the uninstantiated AST of the original type symbol, and the macro attempts to use this type for the result. To fix the issue, the provided typedesc argument is used instead.

@metagn metagn changed the title fix jsonutils macro with generic ref case object fix jsonutils macro with generic case object Nov 12, 2024
@Araq Araq merged commit 45e21ce into nim-lang:devel Nov 12, 2024
18 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 45e21ce

Hint: mm: orc; opt: speed; options: -d:release
177412 lines; 8.561s; 652.547MiB peakmem

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.

2 participants