-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow 'ref readonly struct' for 'readonly ref struct' #25187
Comments
This is not a compiler issue, but a request for a change in the language. as such, this should be filed over at dotnet/csharplang. Thanks! |
this is already championed (dotnet/csharplang#946) |
This was not championed or fixed. What was fixed was the ordering of |
Issue moved to dotnet/csharplang #1536 via ZenHub |
@gafter |
that is, if we relax the order of |
Version Used:
Visual Studio 2017 27428.0.d15.7
Steps to Reproduce:
Expected Behavior:
The order of 'ref' and 'readonly' should not matter; I can either use 'readonly ref struct' or 'ref readonly struct' to declare readonly ref-like types.
Actual Behavior:
'ref readonly struct' is not allowed. looks like
ref struct
is a compound keyword likepartial class
.The text was updated successfully, but these errors were encountered: