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

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

Issue 2892593005: Handle FutureOr type when inferring async closures. (Closed)
Patch Set: 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_future_or.dart
diff --git a/pkg/front_end/testcases/inference/async_closure_return_type_future_or.dart b/pkg/front_end/testcases/inference/async_closure_return_type_future_or.dart
index 021c91f4fcd729e0894dd6f0f758725efa2a9a1f..34044372b9a1fdef97b5796af153eec8276842e3 100644
--- a/pkg/front_end/testcases/inference/async_closure_return_type_future_or.dart
+++ b/pkg/front_end/testcases/inference/async_closure_return_type_future_or.dart
@@ -12,3 +12,8 @@ var /*@topType=() -> FutureOr<int>*/ f = /*@returnType=FutureOr<int>*/ () =>
futureOrInt;
var /*@topType=() -> Future<int>*/ g = /*@returnType=Future<int>*/ () async =>
futureOrInt;
+
+main() {
+ f;
+ g;
+}

Powered by Google App Engine
This is Rietveld 408576698