930697a158
Fixes https://github.com/dart-lang/sdk/issues/47379 We use a separate message for yield expressions, so that the yielded type can be used. In checking against the yielded type, we also stop reporting in some cases, which removes duplicate errors. Change-Id: I2ce036086ca06d5ff32531afd4b1812f17b908ad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218745 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>