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

PreserveInitializes feature now correctly handles record constructors #348

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

NorekZ
Copy link
Contributor

@NorekZ NorekZ commented Sep 29, 2021

Solves issue of PreserveInitializers feature that generated invalid IL code for C# 9 records.

I also added tests to cover this use case.

I needed to add "net5.0" target for AssemblyToProcess assembly to be able to use "record" keyword and also for Tests assembly.

Should not break anything else - tests are passing.

@SimonCropp SimonCropp added this to the 3.0.3 milestone Oct 1, 2021
@SimonCropp SimonCropp added the Bug label Oct 1, 2021
@SimonCropp
Copy link
Member

nice job with the PR. thanks

@SimonCropp SimonCropp merged commit fd950a7 into Fody:master Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants