Skip to content

whitelist prev types to reuse in newOrPrevType #24899

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

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Apr 22, 2025

fixes #24898

A type is only overwritten if it is definitely a forward type, partial object (symbol marked sfForward) or a magic type. Maybe worse for performance but should be more correct. Another option might be to provide a different value for prev for the preserveSym case but then we cannot easily ignore only nominal type nodes.

@metagn metagn changed the title test whitelisting prev types to reuse in newOrPrevType whitelist prev types to reuse in newOrPrevType Apr 22, 2025
@metagn metagn marked this pull request as ready for review April 22, 2025 06:49
@Araq Araq merged commit d966ee3 into nim-lang:devel Apr 22, 2025
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 d966ee3

Hint: mm: orc; opt: speed; options: -d:release
179396 lines; 8.984s; 651.305MiB 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
2 participants