Skip to content

Commit 7dbd92b

Browse files
lrhneernstg
andauthored
Update resources/type-system/inference.md
Co-authored-by: Erik Ernst <eernst@google.com>
1 parent 157ba19 commit 7dbd92b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/type-system/inference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ schema.
343343
- If the enclosing function is marked `sync*`, then for each `yield* e;`
344344
statement in the block, let `S` be the inferred type of `e`, using the
345345
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
346+
`Iterable<K>`. If `S` implements `Iterable<E>` for some `E` then update `T` to be `UP(E, T)`.
347+
Otherwise update
348348
`T` to be `UP(S, T)`.
349349
_It is a compile-time error if *S* is not a assignable to
350350
`Iterable<Object?>`, so either *S* implements `Iterable`, or it is one of

0 commit comments

Comments
 (0)