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

Unified Diff: pkg/front_end/testcases/inference/downwards_inference_async_await.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/downwards_inference_async_await.dart
diff --git a/pkg/front_end/testcases/inference/downwards_inference_async_await.dart b/pkg/front_end/testcases/inference/downwards_inference_async_await.dart
index afdc29ed5264e999f970ccdca047747ba0fe9d57..305d1d645d802d5986d624b558bcbb8a8bda0472 100644
--- a/pkg/front_end/testcases/inference/downwards_inference_async_await.dart
+++ b/pkg/front_end/testcases/inference/downwards_inference_async_await.dart
@@ -7,9 +7,9 @@ library test;
import 'dart:async';
-Future test() async {
+Future main() async {
dynamic d;
List<int> l0 = await /*@typeArgs=int*/ [/*info:DYNAMIC_CAST*/ d];
List<int> l1 = await new /*@typeArgs=List<int>*/ Future.value(
- /*@typeArgs=dynamic*/ [d]);
+ /*@typeArgs=int*/ [d]);
}

Powered by Google App Engine
This is Rietveld 408576698