Index: pkg/front_end/testcases/inference/future_union_upwards_generic_methods.dart.strong.expect |
diff --git a/pkg/front_end/testcases/inference/future_union_upwards_generic_methods.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_upwards_generic_methods.dart.strong.expect |
index 9232dba5ab979471596ee1a14dbfedbbeb1a4284..93749c9eb0aa26977bd81112710197dc6a03e29f 100644 |
--- a/pkg/front_end/testcases/inference/future_union_upwards_generic_methods.dart.strong.expect |
+++ b/pkg/front_end/testcases/inference/future_union_upwards_generic_methods.dart.strong.expect |
@@ -18,38 +18,12 @@ class C extends self::A { |
: super self::A::•() |
; |
} |
-static method main() → dynamic /* originally async */ { |
- final asy::Completer<asy::FutureOr<dynamic>> :completer = asy::Completer::sync<asy::FutureOr<dynamic>>(); |
- asy::FutureOr<dynamic> :return_value; |
- dynamic :async_op_then; |
- dynamic :async_op_error; |
- dynamic :await_jump_var = 0; |
- dynamic :await_ctx_var; |
- dynamic :saved_try_context_var0; |
- function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding |
- try { |
- #L1: |
- { |
- asy::Future<self::B> b = asy::Future::value<self::B>(new self::B::•()); |
- asy::Future<self::C> c = asy::Future::value<self::C>(new self::C::•()); |
- core::List<asy::Future<self::A>> lll = <asy::Future<self::A>>[b, c]; |
- asy::_awaitHelper(asy::Future::wait<self::A>(lll), :async_op_then, :async_op_error, :async_op); |
- [yield] null; |
- core::List<self::A> result = :result; |
- asy::_awaitHelper(asy::Future::wait<self::A>(<asy::Future<self::A>>[b, c]), :async_op_then, :async_op_error, :async_op); |
- [yield] null; |
- core::List<self::A> result2 = :result; |
- core::List<self::A> list = result; |
- list = result2; |
- } |
- :completer.complete(:return_value); |
- return; |
- } |
- on dynamic catch(dynamic :exception, dynamic :stack_trace) { |
- :completer.completeError(:exception, :stack_trace); |
- } |
- :async_op_then = asy::_asyncThenWrapperHelper(:async_op); |
- :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); |
- asy::Future::microtask<dynamic>(:async_op); |
- return :completer.future; |
+static method main() → dynamic async { |
+ asy::Future<self::B> b = asy::Future::value<self::B>(new self::B::•()); |
+ asy::Future<self::C> c = asy::Future::value<self::C>(new self::C::•()); |
+ core::List<asy::Future<self::A>> lll = <asy::Future<self::A>>[b, c]; |
+ core::List<self::A> result = await asy::Future::wait<self::A>(lll); |
+ core::List<self::A> result2 = await asy::Future::wait<self::A>(<asy::Future<self::A>>[b, c]); |
+ core::List<self::A> list = result; |
+ list = result2; |
} |