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

Fix16431 - Modify DU static initialization #16661

Merged
merged 4 commits into from Feb 8, 2024
Merged

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Feb 7, 2024

Fixes #16431

There is a bug with DU initialization, that causes the DU ID for each type to be initialized after all of the remainder of the static initialization.

The fix is to ensure that we provoke the static initialization code in the .cctor for the DUafter the unique ids have been assigned.

The PR for static initialization will need to be updated to reflect this new behavior.

This is not actually a breaking change, so we will treat it as a bug fix.

  • Fix initialization
  • Add regression test

@KevinRansom KevinRansom requested a review from a team as a code owner February 7, 2024 06:47
Copy link
Contributor

github-actions bot commented Feb 7, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.300.md

Co-authored-by: Florian Verdonck <florian.verdonck@outlook.com>
@psfinaki psfinaki enabled auto-merge (squash) February 8, 2024 12:47
@psfinaki psfinaki merged commit ebf21ff into dotnet:main Feb 8, 2024
28 checks passed
@KevinRansom KevinRansom deleted the fix16431 branch March 21, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
4 participants