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

Do not rename parameters for record constructors #4

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

shartte
Copy link
Contributor

@shartte shartte commented Dec 30, 2023

Parchment data also contains parameter names for Record constructors. For the normal parameter set this doesn't matter, but the checked version that we use (with all parameters prefixed by p), breaks recompilation since Record constructor parameters should not be renamed.

This introduces a workaround that explicitly skips parameter renaming for record constructor parameters.

@shartte shartte merged commit 8005731 into neoforged:main Dec 30, 2023
@shartte shartte deleted the fix-record-ctors branch December 30, 2023 14:55
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