Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readonly ref struct being flagged for in keyword use. #244

Open
electricessence opened this issue Oct 17, 2021 · 0 comments
Open

readonly ref struct being flagged for in keyword use. #244

electricessence opened this issue Oct 17, 2021 · 0 comments

Comments

@electricessence
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant