You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeEqualitySealed test is failing with full trimming on #121874
00007FF63D852FF0 lea rax,[__Str_Ok (07FF63D88B278h)]
00007FF63D852FF7 ret
What is probably happening is that with trimming disabled, whole program analysis sees SealedClass2 as possible (because we reflection-rooted it), however after allowing trimming, it becomes impossible and we forget about the NRE side effect.
To repro, you can just copy paste the C# source into the Visual Studio repro project and add -O to the ILC command line. Delete the Xunit gunk and rename the Fact method to Main.
Activity
dotnet-policy-service commentedon Nov 21, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
EgorBo commentedon Nov 21, 2025
Good catch! Filed #121875
Fix missing side-effects handling in gtFoldTypeCompare (dotnet#121875)