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
Combination of ref struct and ref parameters causes validation to fail for the code below. Making BinaryReader a normal non-ref struct or making the parameters non-ref causes the validation error to go away.
The text was updated successfully, but these errors were encountered:
mikernet
changed the title
Combination of generics, ref struct and ref parameter causes type constraint IL verification errors
Combination ref struct and ref parameter causes type constraint IL verification errors
Feb 24, 2024
Description
Combination of
ref struct
andref
parameters causes validation to fail for the code below. MakingBinaryReader
a normal non-refstruct
or making the parameters non-ref causes the validation error to go away.Reproduction Steps
Sharplab link
Configuration
.NET 8.0.0
The text was updated successfully, but these errors were encountered: