ca220074db
Issue https://github.com/dart-lang/sdk/issues/54628 raised the issue that the static analysis of `await e` behaves in unexpected ways when the static type of `e` is a subtype of a future related type, rather than just a plain `Future<T>` or `FutureOr<T>` for some `T`. This CL adds a test that assumes the update to the language specification which is performed by the PR https://github.com/dart-lang/language/pull/3574. Hence, this CL should ONLY BE LANDED if and when that PR is landed. Change-Id: Ib8acb77e24ffbceb0b4034d3b23a0f4fef8e3d1c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354020 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Erik Ernst <eernst@google.com>