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

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

Issue 2867113002: Update expectations for instance creations to match 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_union_downwards_3.dart
diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart b/pkg/front_end/testcases/inference/future_union_downwards_3.dart
index 8f2984e5818322a8f9ef28a85c067b824f9b07b1..b84b84e97e12609d4055b9b9ef34d5f3a79a6190 100644
--- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart
+++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart
@@ -17,7 +17,7 @@ class MyFuture<T> implements Future<T> {
Future f;
// Instantiates Future<int>
Future<int> t1 = f.then(/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) =>
- /*@typeArgs=int*/ new Future.value('hi'));
+ new /*@typeArgs=int*/ Future.value('hi'));
// Instantiates List<int>
Future<List<int>> t2 = f.then(
@@ -27,6 +27,6 @@ Future<List<int>> g2() async {
}
Future<List<int>> g3() async {
- return /*@typeArgs=List<int>*/ new Future.value(
+ return new /*@typeArgs=List<int>*/ Future.value(
/*@typeArgs=int*/ [3]);
}

Powered by Google App Engine
This is Rietveld 408576698