We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 157ba19 commit 7dbd92bCopy full SHA for 7dbd92b
resources/type-system/inference.md
@@ -343,8 +343,8 @@ schema.
343
- If the enclosing function is marked `sync*`, then for each `yield* e;`
344
statement in the block, let `S` be the inferred type of `e`, using the
345
local type inference algorithm described below with a typing context of
346
- `Iterable<K>`. If there exists a type `E` such that `Iterable<E>` is a
347
- super-interface of `S`, update `T` to be `UP(E, T)`. Otherwise update
+ `Iterable<K>`. If `S` implements `Iterable<E>` for some `E` then update `T` to be `UP(E, T)`.
+ Otherwise update
348
`T` to be `UP(S, T)`.
349
_It is a compile-time error if *S* is not a assignable to
350
`Iterable<Object?>`, so either *S* implements `Iterable`, or it is one of
0 commit comments