Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2541603002: Support for AwaitExpression in unlinked expressions. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 48293c1cceee3f49ee532298f2e75dcd6e2dcdd6..24597cd590e621bbd1e98c17f9ab68640eded78c 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -3629,6 +3629,24 @@ var v = [f, g];
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_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 {

Powered by Google App Engine
This is Rietveld 408576698