-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Operators returning a readonly reference in IL #22282
Comments
Should not allow it. In the past we did not allow operators that we could not declare. |
From LDM today, we should not allow it in metadata, since we won't support it in the language in 7.2. This needs to be done in such a way that it could be added later. |
We should add tests to disallow using it as an operator ( |
@jcouv are we ok with having this in |
From our discussion, let's keep this in 15.later for now, and go through un-assigned 15.5 ref readonly issues first. |
Moving out to 15.7 but this is an issue we need to tackle in that release. Else we risk being forced to keep this behavior for compat reasons. |
@jaredpar doing some clean up, and apparently I cannot reassign my bugs if I'm no longer an owner here :( |
Related to test plan #19216
It appears that the current version accepts operators that return by ref (when read from IL).
Should we be accepting ref-readonly returns as well? I believe we should not, since it is a spec violation.
The text was updated successfully, but these errors were encountered: