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

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

Issue 2904263003: Implement type inference for await expressions in front_end. (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/future_then_downwards_method_target.dart
diff --git a/pkg/front_end/testcases/inference/future_then_downwards_method_target.dart b/pkg/front_end/testcases/inference/future_then_downwards_method_target.dart
index b8e018e3f8c2e757d7ad7de645bc0f9bd7ee35ff..5d9a04ad9a56f9f68b81e0a4a346ead3fb5ef192 100644
--- a/pkg/front_end/testcases/inference/future_then_downwards_method_target.dart
+++ b/pkg/front_end/testcases/inference/future_then_downwards_method_target.dart
@@ -7,7 +7,7 @@ library test;
import 'dart:async';
-main() {
+test() {
Future<int> f;
Future<List<int>> b = /*info:ASSIGNMENT_CAST should be pass*/ f
. /*@typeArgs=List<dynamic>*/ /*@target=Future::then*/ then(
@@ -17,3 +17,5 @@ main() {
b = f. /*@typeArgs=List<int>*/ /*@target=Future::then*/ then(
/*@returnType=List<int>*/ (/*@type=int*/ x) => /*@typeArgs=int*/ []);
}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698