Soundness issue with generator element type #53052
Labels
area-meta
Cross-cutting, high-level issues (for tracking many other implementation issues, ...).
implementation
Track the implementation of a specific feature (use on area-meta issue, not issues for each tool)
soundness
Uh oh!
There was an error while loading. Please reload this page.
Thanks to @lrhn for spotting this issue and reporting it here.
The specification of the element type of a generator has just been updated accordingly, cf. dart-lang/language#3218.
The old rule gave rise to a soundness issue:
The main idea in the correction is that the element type of a generator function uses a reduction step where the given return type is simplified to an
Iterable<T>
for someT
(for async*
function body) or aStream<T>
for someT
(for anasync*
body), and the element type is then extracted from thatIterable<T>
/Stream<T>
.Subtasks:
The text was updated successfully, but these errors were encountered: