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

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

Issue 2541603002: Support for AwaitExpression in unlinked expressions. (Closed)
Patch Set: Use DartType.flattenFutures() 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 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 {
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_const_expr.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698