-
Notifications
You must be signed in to change notification settings - Fork 802
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
Ad-hoc fix for ref readonly
parameters
#16232
Conversation
That's ready @dotnet/fsharp-team-msft @baronfel what should we do to backport it to If 17.8 maps to |
Yeah - backport to the branch you have that maps to release/8.0.1xx in the SDK, then get Tactics approval before you merge that PR. Codeflow via darc will take care of the rest and you'll be automatically included in the first servicing release (in December). |
@vzarytovskii, it's worth noting that it while Roslyn currently encodes it as It looks like F# isn't actually checking for |
Yeah, I think we only emit it, not read. As you said, we pretty much only check attributes for refs |
/backport to release/dev17.8 |
Started backporting to release/dev17.8: https://github.com/dotnet/fsharp/actions/runs/6826852984 |
Fixes dotnet/runtime#94317
Note that this is an ad-hoc fix which will just treat
ref readonly
asinref
during parameters import, for long-term fix, please refer to #16222ref readonly
is encoded as[in]&T
withRequiresLocationAttribute
, we importinref<_>
only from[in]&T
withIsReadOnlyAttribute
, this PR adds a second check.