Skip to content

Commit 67b5030

Browse files
lrhneernstg
andauthored
Update resources/type-system/inference.md
Co-authored-by: Erik Ernst <[email protected]>
1 parent 4be1949 commit 67b5030

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

resources/type-system/inference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,8 @@ schema.
352352
- If the enclosing function is marked `async*`, then for each `yield* e;`
353353
statement in the block, let `S` be the inferred type of `e`, using the
354354
local type inference algorithm described below with a typing context of
355-
`Stream<K>`. If there exists a type `E` such that `Stream<E>` is a
356-
super-interface of `S`, update `T` to be `UP(E, T)`. Otherwise update
357-
`T` to be `UP(S, T)`.
355+
`Stream<K>`. If `S` implements `Stream<E>` for some `E` then update `T` to
356+
be `UP(E, T)`. Otherwise update `T` to be `UP(S, T)`.
358357
_It is a compile-time error if *S* is not a assignable to
359358
`Stream<Object?>`, so either *S* implements `Iterable`, or it is one of
360359
`dynamic` or `Never`._

0 commit comments

Comments
 (0)