[UnsafeAccessor] throws MissingFieldException on .NET 9 when used on unspeakable fields #109943
Labels
area-System.Runtime.CompilerServices
in-pr
There is an active PR which will close this issue when it is merged
regression-from-last-release
Milestone
Description
Spotted while porting my ComputeSharp samples to .NET 9 (see here). It seems that
[UnsafeAccessor]
is broken in .NET 9 when used to access unspeakable fields (captured primary constructor parameters being a common example).Reproduction Steps
Expected behavior
Should work as expected.
Actual behavior
Sergio0694/ComputeSharp#871
Regression?
Yes. Works fine on .NET 8.
Known Workarounds
None that I can think of.
Configuration
The text was updated successfully, but these errors were encountered: