Index: pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart.strong.expect |
diff --git a/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart.strong.expect b/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart.strong.expect |
index 6295c18db51f276ef31a5c890626ec66f830cf10..752d085f19be76bda2b8e96daf4904fe993847d0 100644 |
--- a/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart.strong.expect |
+++ b/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart.strong.expect |
@@ -5,31 +5,7 @@ import "dart:core" as core; |
static field asy::Future<core::int> futureInt = null; |
static field () → asy::Future<core::int> f = () → asy::Future<core::int> => self::futureInt; |
-static field () → asy::Future<core::int> g = () → asy::Future<core::int> /* originally async */ { |
- final asy::Completer<asy::FutureOr<core::int>> :completer = asy::Completer::sync<asy::FutureOr<core::int>>(); |
- asy::FutureOr<core::int> :return_value; |
- dynamic :async_op_then; |
- dynamic :async_op_error; |
- dynamic :await_jump_var = 0; |
- dynamic :await_ctx_var; |
- function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding |
- try { |
- #L1: |
- { |
- :return_value = self::futureInt; |
- break #L1; |
- } |
- :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 field () → asy::Future<core::int> g = () → asy::Future<core::int> async => self::futureInt; |
static method main() → dynamic { |
self::f; |
self::g; |