c7dcbff358
The desugared code uses `Completer<bool>` values to suspend the `async*` function, but we can't use a type test and to check if a value is the `Completer<bool>` value for the suspension or a user-emitted value as the `async*` function can also yield `Completer<bool>` values. Update the test from `value is Completer<bool>` to `!isEven`. Change-Id: I74f54b838e6a2aab942154ec7f3e667e291523e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304880 Reviewed-by: Joshua Litt <joshualitt@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com>