Checks around ref
& ref readonly
required.
#836
Labels
meeting: discuss
This issue should be discussed at the next TC49-TG2 meeting
Milestone
Adding this as an issue so it’s checked off before v7.
Recent issues have brought to light that the introduction of
ref
andref readonly
into v7 is unfortunately incomplete and where they are allowed and the rules governing them need to be checked to ensure v7 makes sense in this area.Recent issues, and PRs if applicable, concerning
ref
&ref readonly
:=> ref
#825, missing expression bodied functions variants (assigned, PR in progress)ref readonly
in local_variable_initializer #828, initializers – addressed by PRref readonly
is not allowed in local_variable_initializer #831 (approved, pending merge)in
parameter modifier #835,in
parameters for operators (self assigned, not yet in progress)Issues not covered by PRs:
ref
&ref readonly
variables should be checked for completeness (C# 7 §13.6.2ref readonly
in local_variable_initializer #828 suggests that some source material may have been sourced from earlier feature proposals and may not reflect the final intended semantics).ref
andref readonly
, e.g. when a selection expression hasref
&ref readonly
choices, need to be checked.ref
, a little word with a big impact!The above list may not be exhaustive, please add to it if needed!
Of the existing PRs only one is “in progress” right now, next other two are in my queue – feel free to dive in and take an reassign, but maybe consider checking the rules for validity as that is not covered by any PR (and of course may produce none!)
The text was updated successfully, but these errors were encountered: