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

Unified Diff: pkg/front_end/testcases/inference/local_constructor_from_arguments.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/local_constructor_from_arguments.dart
diff --git a/pkg/front_end/testcases/inference/local_constructor_from_arguments.dart b/pkg/front_end/testcases/inference/local_constructor_from_arguments.dart
index 18c6dd11b60720740ae4b4e37cce64d3288faef9..6852b6273d3e83a9c0a640f59a2392a836877777 100644
--- a/pkg/front_end/testcases/inference/local_constructor_from_arguments.dart
+++ b/pkg/front_end/testcases/inference/local_constructor_from_arguments.dart
@@ -11,13 +11,13 @@ class C<T> {
}
main() {
- var /*@type=C<int>*/ x = /*@typeArgs=int*/ new C(42);
+ var /*@type=C<int>*/ x = new /*@typeArgs=int*/ C(42);
num y;
- C<int> c_int = /*@typeArgs=int*/ new C(
+ C<int> c_int = new /*@typeArgs=int*/ C(
/*info:DOWN_CAST_IMPLICIT*/ /*@promotedType=none*/ y);
- C<num> c_num = /*@typeArgs=num*/ new C(123);
+ C<num> c_num = new /*@typeArgs=num*/ C(123);
// Don't infer from explicit dynamic.
var /*@type=C<dynamic>*/ c_dynamic = new C<dynamic>(42);

Powered by Google App Engine
This is Rietveld 408576698