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
The language currently disallows you from passing a Span<T> to an instance method of a ref struct, unless that ref struct is also readonly or an in extension method.
The compiler should presumably also take into consideration whether a given member is itself readonly on a mutable instance struct and allow that as well.
The language currently disallows you from passing a
Span<T>
to an instance method of a ref struct, unless that ref struct is alsoreadonly
or anin
extension method.The compiler should presumably also take into consideration whether a given member is itself
readonly
on a mutable instance struct and allow that as well.For reference: https://sharplab.io/#v2:EYLgtghgzgLgpgJwDQxASwDYB8ACAGAAhwEYBuAWACgcBmAhOCAEwHsA7DAT3rgDMDYCAK4BjGAQDKAHgAqAPgIBvKgVVE6OACwEAsgAoJABwhtZCgB4BKFWuWU1BAL5VnlKrR79Bo8RIBMZko2qh4MzOxcRNr6RiaBVsFB9mquru4axABsRH4EAMJUdg4eQmxQELxwRFlRBAByBlLAnPAKwNbJqkUOarGmAEItcBYEALwCMBAiANYQGBgsIgTN8ADaAKwAuhSdPcAAdPpWOw6uDoklZRVVJNla9QYBK8PLHQ7dPZLGA0Mj47BTWbzRbLIYbbaJBwAeihBAAouZDHAxHAmAQYCwCAB3FgIaZIARoNgiKr6SwENBQAgmNgsSbwNEYgi08RgIT0qowAAWVSJAOJcCQkLUMOpbEZPIYvFxVREJgA5OJYDKCOZhaoDkdLCcUi4gA
The text was updated successfully, but these errors were encountered: