Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Apr 2, 2022
1 parent 5734287 commit 3baa9e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions standard/statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ declaration_statement
;
```
A local variable is declared using a *local_variable_declaration* ([§12.6.2](statements.md#1262-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§12.6.3](statements.md#1262-local-constant-declarations)). A local function is declared using a *local_function_declaration* (§local-function-declarations-new-clause).
A local variable is declared using a *local_variable_declaration* ([§12.6.2](statements.md#1262-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§12.6.3](statements.md#1263-local-constant-declarations)). A local function is declared using a *local_function_declaration* (§local-function-declarations-new-clause).

### 12.6.2 Local variable declarations

Expand Down Expand Up @@ -442,9 +442,9 @@ local_function_body
;
```

Unless specified otherwise below, the semantics of all grammar elements is the same as for *method_declaration* ([14.6.1](classes.md#1461-general), read in the context of a local function instead of a method.
Unless specified otherwise below, the semantics of all grammar elements is the same as for *method_declaration* ([§14.6.1](classes.md#1461-general), read in the context of a local function instead of a method.

A *local_function_declaration* may include one `async` ([§14.15](classes.md#1415-async-functions)) modifier and one `unsafe` ([§22.1](unsafe_code.md#221-general)) modifier. If the declaration includes the `async` modifier then the return type shall be `void` or a task type ([§14.15.1](classes.md#14151-general)).
A *local_function_declaration* may include one `async` ([§14.15](classes.md#1415-async-functions)) modifier and one `unsafe` ([§22.1](unsafe-code.md#221-general)) modifier. If the declaration includes the `async` modifier then the return type shall be `void` or a task type ([§14.15.1](classes.md#14151-general)).

A local function is declared at block scope, and that function may capture variables from the enclosing scope. Each call of the function requires captured variables to be definitely assigned before the call. The compiler shall determine which variables are definitely assigned on return.

Expand Down

0 comments on commit 3baa9e8

Please sign in to comment.