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

Unified Diff: pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.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/infer_types_on_generic_instantiations_5.dart
diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart
index e5f67e26455331dd17c57dedbe8a4b2422ef9f09..7dbc105510b5b742134d08fff08477b38995bd79 100644
--- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart
+++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart
@@ -26,7 +26,7 @@ class B<E> extends A<E> implements M {
}
foo() {
- int y = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ new B()
+ int y = /*error:INVALID_ASSIGNMENT*/ new /*@typeArgs=dynamic*/ B()
.m(null, null);
- String z = /*@typeArgs=dynamic*/ new B().m(null, null);
+ String z = new /*@typeArgs=dynamic*/ B().m(null, null);
}

Powered by Google App Engine
This is Rietveld 408576698