-
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
Support ref readonly parameters #16222
Comments
My understanding is that If you want to fix |
F# 8.0.100 sees a
|
Yeah. I actually think I'm going to close it now, since we have an ad-hoc fix which works, and it should be a small rfc if we want any additional support. |
Yes, it's known. BCL changed the API and we didn't have much time to revert or fix on F# side. 8.0.101 should have the fix with will treat ref readonly as inrefs. |
8.0.101 seems to be working fine for me. Thanks |
Ref readonly are encoded as inrefs ([in] &T) with special attribute: https://github.com/jjonescz/csharplang/blob/5134bd7042bcd71dbddbdff618b9b63dc54775a0/proposals/ref-readonly-parameters.md#metadata-encoding
More info: https://discord.com/channels/143867839282020352/312132327348240384/1169766448063856650
Update 1: Intermediate ad-hoc fix (#16232) treats
ref readonly
as if it wasinert
in parameters. Proper fix should be introducing new byref type -readonlyref<_>
, which should be a long-term fix.cc @Tarmil @Sergio0694 @TIHan
The text was updated successfully, but these errors were encountered: