We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_
FutureOr<_>
1 parent 87b0904 commit a23e438Copy full SHA for a23e438
resources/type-system/inference.md
@@ -389,7 +389,9 @@ to find a value type `V` for that statement.
389
are `return;` and `return e;` statements.
390
* For a `return;` statement, let `V` be `Null`.
391
* For a `return e;` statement, let `S` be the inferred type of `e`
392
- with typing context `FutureOr<K>`. Let `V` be **flatten**(`S`).
+ with typing context `_` if `K` is `_`,
393
+ and with typing context `FutureOr<K>` if `K` is not `_`,
394
+ Let `V` be **flatten**(`S`).
395
396
- If the enclosing function is marked `sync*`, the relevant statements
397
are `yield e;` or `yield* e;` statement.
0 commit comments