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

Unified Diff: pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart

Issue 2895063003: Flatten futures when inferring the type of an async function expression. (Closed)
Patch Set: Don't recurse on future-derived types Created 3 years, 7 months 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/front_end/testcases/inference/async_closure_return_type_flatten.dart
diff --git a/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart b/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart
index e3d0dc05288b6cfb77ca64c79c80283e32245376..deab00696bac15def9cc36e61e0b08193dd4d1f2 100644
--- a/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart
+++ b/pkg/front_end/testcases/inference/async_closure_return_type_flatten.dart
@@ -12,3 +12,8 @@ var /*@topType=() -> Future<int>*/ f = /*@returnType=Future<int>*/ () =>
futureInt;
var /*@topType=() -> Future<int>*/ g = /*@returnType=Future<int>*/ () async =>
futureInt;
+
+main() {
+ f;
+ g;
+}

Powered by Google App Engine
This is Rietveld 408576698