You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section 12.3 (blocks) just refers to blocks, e.g.:
> A *block* permits multiple statements to be written in contexts where a single statement is allowed.
So there's no need to use "statement block" anywhere else.
Fixes#506.
Copy file name to clipboardExpand all lines: standard/classes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2987,7 +2987,7 @@ When the effective return type of a method is not `void` and the method has an e
2987
2987
> }
2988
2988
> ```
2989
2989
>
2990
-
>thevalue-returning `F` methodresultsinacompile-timeerrorbecausecontrolcanflowofftheendofthemethodbody. The `G` and `H` methodsarecorrectbecauseallpossibleexecutionpathsendinareturnstatementthatspecifiesareturnvalue. The `I` methodiscorrect, becauseitsbodyisequivalenttoastatementblockwithjustasinglereturnstatementinit.
2990
+
>thevalue-returning `F` methodresultsinacompile-timeerrorbecausecontrolcanflowofftheendofthemethodbody. The `G` and `H` methodsarecorrectbecauseallpossibleexecutionpathsendinareturnstatementthatspecifiesareturnvalue. The `I` methodiscorrect, becauseitsbodyisequivalenttoablockwithjustasinglereturnstatementinit.
@@ -4759,7 +4759,7 @@ The behavior of *lambda_expression*s and *anonymous_method_expression*s is the s
4759
4759
4760
4760
-*anonymous_method_expression*spermittheparameterlisttobeomittedentirely, yieldingconvertibilitytodelegate types of any list of value parameters.
4761
4761
- *lambda_expression*s permit parameter types to be omitted and inferred whereas *anonymous_method_expression*s require parameter types to be explicitly stated.
4762
-
- The body of a *lambda_expression* can be an expression or a statement block whereas the body of an *anonymous_method_expression* shall be a statement block.
4762
+
- The body of a *lambda_expression* can be an expression or a block whereas the body of an *anonymous_method_expression* shall be a block.
4763
4763
- Only *lambda_expression*s have conversions to compatible expression tree types ([§8.6](types.md#86-expression-tree-types)).
0 commit comments