Skip to content

Commit aa1d94b

Browse files
authored
Update statements.md
1 parent a189d1a commit aa1d94b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

standard/statements.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ Local function bodies are always reachable. The endpoint of a local function dec
537537
538538
If the argument to a local function is dynamic, the function to be called must be resolved at compile time, not runtime.
539539
540+
A local function is treated like a method, except in regard to its captured variables. The initial state of a captured variable inside a local function is the intersection of the nullable state of the variable at all the uses of that local function. A use of a local function is either a call to that function, or where it is converted to a delegate.
541+
540542
## 12.7 Expression statements
541543
542544
An *expression_statement* evaluates a given expression. The value computed by the expression, if any, is discarded.

0 commit comments

Comments
 (0)