Skip to content

Commit

Permalink
Update resources/type-system/inference.md
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Ernst <eernst@google.com>
  • Loading branch information
lrhn and eernstg committed Jun 23, 2023
1 parent 157ba19 commit 7dbd92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/type-system/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ schema.
- If the enclosing function is marked `sync*`, then for each `yield* e;`
statement in the block, let `S` be the inferred type of `e`, using the
local type inference algorithm described below with a typing context of
`Iterable<K>`. If there exists a type `E` such that `Iterable<E>` is a
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
`T` to be `UP(S, T)`.
_It is a compile-time error if *S* is not a assignable to
`Iterable<Object?>`, so either *S* implements `Iterable`, or it is one of
Expand Down

0 comments on commit 7dbd92b

Please sign in to comment.