Skip to content

Commit 5073ab7

Browse files
committed
Don't forget to actually assign when setting a ref-valued property
1 parent 8b115bf commit 5073ab7

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
@@ -472,7 +472,7 @@ Once a particular function member has been identified at binding-time, possibly
472472
> </tr>
473473
> <tr>
474474
> <td><code>e.P = value</code></td>
475-
> <td>If <code>P</code> is non-ref-valued (§15.7.1), the set accessor of the property <code>P</code> in the class, struct, or interface given by the type of <code>E</code> is invoked with the instance expression <code>e</code> and the argument list <code>(value)</code>. If <code>P</code> is ref-valued, the get accessor of the property <code>P</code> in the containing class, struct, or interface given by the type of <code>E</code> is invoked is invoked with the instance expression <code>e</code>. A binding-time error occurs if <code>P</code> is <code>static</code>, if <code>P</code> is non-ref-valued and read-only, or if <code>P</code> is ref-valued and returns a readonly reference.</td>
475+
> <td>If <code>P</code> is non-ref-valued (§15.7.1), the set accessor of the property <code>P</code> in the class, struct, or interface given by the type of <code>E</code> is invoked with the instance expression <code>e</code> and the argument list <code>(value)</code>. If <code>P</code> is ref-valued, the get accessor of the property <code>P</code> in the containing class, struct, or interface given by the type of <code>E</code> is invoked is invoked with the instance expression <code>e</code> to obtain a variable, and <code>value</code> is assigned to that variable. A binding-time error occurs if <code>P</code> is <code>static</code>, if <code>P</code> is non-ref-valued and read-only, or if <code>P</code> is ref-valued and returns a readonly reference.</td>
476476
> </tr>
477477
> <tr>
478478
> <td rowspan="6">Event access</td>

0 commit comments

Comments
 (0)