Skip to content

Commit 0409dfa

Browse files
jskeetBillWagner
andcommitted
Update standard/expressions.md
Co-authored-by: Bill Wagner <[email protected]>
1 parent 1f30416 commit 0409dfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

standard/expressions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ During the run-time processing of a function member invocation ([§12.6.6](expre
622622
- For an input, output, or reference argument, the variable reference is evaluated and the resulting storage location becomes the storage location represented by the parameter in the function member invocation. For an input or reference argument, the variable shall be definitely assigned at the point of the method call. If the variable reference is given as an output argument, or is an array element of a *reference_type*, a run-time check is performed to ensure that the element type of the array is identical to the type of the parameter. If this check fails, a `System.ArrayTypeMismatchException` is thrown.
623623
624624
> *Note*: this run-time check is required due to array covariance ([§17.6](arrays.md#176-array-covariance)). *end note*
625+
<!-- markdownlint-disable MD028 -->
625626
627+
<!-- markdownlint-enable MD028 -->
626628
> *Example*: In the following code
627629
>
628630
> <!-- Example: {template:"standalone-console-without-using", name:"Run-timeEvalOfArgLists2", replaceEllipsis:true, expectedException:"ArrayTypeMismatchException"} -->

0 commit comments

Comments
 (0)