Skip to content

Commit 3a7fd3d

Browse files
authored
Include local functions in definition of async functions (#1393)
1 parent 44b34ac commit 3a7fd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5391,7 +5391,7 @@ For a discussion of the behavior when an exception is thrown from a finalizer, s
53915391
53925392
### 15.14.1 General
53935393
5394-
A method ([§15.6](classes.md#156-methods)) or anonymous function ([§12.19](expressions.md#1219-anonymous-function-expressions)) with the `async` modifier is called an ***async function***. In general, the term ***async*** is used to describe any kind of function that has the `async` modifier.
5394+
A method ([§15.6](classes.md#156-methods)), anonymous function ([§12.19](expressions.md#1219-anonymous-function-expressions)), or local function ([§13.6.4](statements.md#1364-local-function-declarations)) with the `async` modifier is called an ***async function***. In general, the term ***async*** is used to describe any kind of function that has the `async` modifier.
53955395
53965396
It is a compile-time error for the parameter list of an async function to specify any `in`, `out`, or `ref` parameters, or any parameter of a `ref struct` type.
53975397

0 commit comments

Comments
 (0)