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
With a pure readonly struct the warning about the in keyword does not show up.
But when a readonly ref struct is used in the same parameter location, it provides the warning.
Is this correct? It doesn't seem right as both are readonly.
In this particular case, I have a ReadOnlySpan as a property and so I had to add readonly ref to it.
The text was updated successfully, but these errors were encountered:
With a pure
readonly struct
the warning about thein
keyword does not show up.But when a
readonly ref struct
is used in the same parameter location, it provides the warning.Is this correct? It doesn't seem right as both are readonly.
In this particular case, I have a ReadOnlySpan as a property and so I had to add
readonly ref
to it.The text was updated successfully, but these errors were encountered: