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

Unified Diff: pkg/front_end/testcases/inference/future_then_3.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_3.dart
diff --git a/pkg/front_end/testcases/inference/future_then_3.dart b/pkg/front_end/testcases/inference/future_then_3.dart
index a3bf6fa3d07c8480e0e49d1a8c750d7185c1b3c8..3abd0ca40574bab18f497b6d99583a4124bd3763 100644
--- a/pkg/front_end/testcases/inference/future_then_3.dart
+++ b/pkg/front_end/testcases/inference/future_then_3.dart
@@ -14,7 +14,7 @@ class MyFuture<T> implements Future<T> {
MyFuture<S> then<S>(FutureOr<S> f(T x), {Function onError}) => null;
}
-void main() {
+void test() {
MyFuture f;
MyFuture<int> t1 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then(
/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
@@ -44,3 +44,5 @@ void main() {
return new Future<int>.value(3);
});
}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698