Skip to content

Commit c135c99

Browse files
committed
Review response
1 parent 149f0d2 commit c135c99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resources/type-system/inference.md

+5
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ schema.
345345
`Stream<K>`; let `E` be the type such that `Stream<E>` is a super-interface
346346
of `S`; and update `T` to be `UP(E, T)`.
347347

348+
In these rules, 'in the block' refers to return and yield statements that
349+
will complete the execution of the function literal under inference, not
350+
the ones, if any, that will complete the execution of a nested function
351+
body.
352+
348353
The **actual returned type** of the function literal is the value of `T` after
349354
all `return` and `yield` statements in the block body have been considered.
350355

0 commit comments

Comments
 (0)