diff --git a/standard/conversions.md b/standard/conversions.md index 11a03726e..f809fd744 100644 --- a/standard/conversions.md +++ b/standard/conversions.md @@ -1015,8 +1015,8 @@ Specifically, an anonymous function `F` is compatible with a delegate type `D` - If `F` contains an *anonymous_function_signature*, then `D` and `F` have the same number of parameters. - If `F` does not contain an *anonymous_function_signature*, then `D` may have zero or more parameters of any type, as long as no parameter of `D` is an output parameter. -- If `F` has an explicitly typed parameter list, each parameter in `D` has the same modifiers as the corresponding parameter in `F`, ignoring `params` modifiers and default values, and an identity conversion exists between the corresponding parameter in `F`. -- If `F` has an implicitly typed parameter list, `D` has no reference or output parameters. +- If `F` has an explicitly or implicitly typed parameter list, each parameter in `D` has the same modifiers as the corresponding parameter in `F`, ignoring `params` modifiers and default values. +- If `F` has an explicitly typed parameter list, an identity conversion shall exist between the type of each parameter in `F` and the type of the corresponding parameter in `D`. - If `F` has an explicit return type, an identity conversion shall exist from the return type of `F` to the return type of `D`. - If the body of `F` is an expression, and *either* `D` has a void return type *or* `F` is async and `D` has a `«TaskType»` return type ([§15.14.1](classes.md#15141-general)), then when each parameter of `F` is given the type of the corresponding parameter in `D`, the body of `F` is a valid expression (w.r.t [§12](expressions.md#12-expressions)) that would be permitted as a *statement_expression* ([§13.7](statements.md#137-expression-statements)). - If the body of `F` is a block, and *either* `D` has a void return type *or* `F` is async and `D` has a `«TaskType»` return type , then when each parameter of `F` is given the type of the corresponding parameter in `D`, the body of `F` is a valid block (w.r.t [§13.3](statements.md#133-blocks)) in which no `return` statement specifies an expression. diff --git a/standard/expressions.md b/standard/expressions.md index c6a504763..d84f0397c 100644 --- a/standard/expressions.md +++ b/standard/expressions.md @@ -6086,7 +6086,7 @@ implicit_anonymous_function_parameter_list ; implicit_anonymous_function_parameter - : attributes? identifier + : attributes? parameter_modifier? identifier ; anonymous_function_body