Skip to content

Commit 25f2f84

Browse files
Nigel-Ecmajskeet
authored andcommitted
Address issue #839
The original text appeared to restrict the left operand to variables declared `ref` or `ref readonly` when a writeable or read-only ref is allowed.
1 parent c7c901d commit 25f2f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6428,7 +6428,7 @@ The right operand shall be definitely assigned at the point of the ref assignmen
64286428
64296429
When the left operand binds to an `out` parameter, it is an error if that `out` parameter has not been definitely assigned at the beginning of the ref assignment operator.
64306430
6431-
If the left operand is a writeable ref (i.e., it designates anything other than a `ref readonly` local or `in` parameter), then the right operand shall be a writeable *variable_reference*. If the right operand variable is writeable, the left operand may be declared `ref` or `ref readonly`.
6431+
If the left operand is a writeable ref (i.e., it designates anything other than a `ref readonly` local or `in` parameter), then the right operand shall be a writeable *variable_reference*. If the right operand variable is writeable, the left operand may be a writeable or read-only ref.
64326432
64336433
The operation makes the left operand an alias of the right operand variable. The alias may be made read-only even if the right operand variable is writeable.
64346434

0 commit comments

Comments
 (0)