Index: pkg/analyzer/test/src/summary/resynthesize_common.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
index 3e03093298b2b72964578633ee9f652898439942..44eaf0f0b7c70fbde926f784d61c70d751db2135 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
@@ -3647,6 +3647,31 @@ abstract class D extends C { |
checkLibrary('var v = () => 0;'); |
} |
+ test_initializer_executable_with_return_type_from_closure_await_dynamic() { |
+ checkLibrary('var v = (f) async => await f;'); |
+ } |
+ |
+ test_initializer_executable_with_return_type_from_closure_await_future3_int() { |
+ checkLibrary(r''' |
+import 'dart:async'; |
+var v = (Future<Future<Future<int>>> f) async => await f; |
+'''); |
+ } |
+ |
+ test_initializer_executable_with_return_type_from_closure_await_future_int() { |
+ checkLibrary(r''' |
+import 'dart:async'; |
+var v = (Future<int> f) async => await f; |
+'''); |
+ } |
+ |
+ test_initializer_executable_with_return_type_from_closure_await_future_noArg() { |
+ checkLibrary(r''' |
+import 'dart:async'; |
+var v = (Future f) async => await f; |
+'''); |
+ } |
+ |
test_initializer_executable_with_return_type_from_closure_field() { |
checkLibrary(''' |
class C { |