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

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

Issue 2865403007: Get rid of promotedType=none annotations (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/constructors_infer_from_arguments_factory.dart
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
index b7d349c56bfa6ef67843982a05fcac9c3ff97ff5..c3444844a6b501bb7c4b44570f0ec229a3f445d5 100644
--- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
@@ -12,12 +12,12 @@ class C<T> {
factory C(T t) {
var /*@type=C<T>*/ x = new C<T>._();
- /*@promotedType=none*/ x.t = /*@promotedType=none*/ t;
- return /*@promotedType=none*/ x;
+ x.t = t;
+ return x;
}
}
main() {
var /*@type=C<int>*/ x = new /*@typeArgs=int*/ C(42);
- /*@promotedType=none*/ x.t = /*error:INVALID_ASSIGNMENT*/ 'hello';
+ x.t = /*error:INVALID_ASSIGNMENT*/ 'hello';
}

Powered by Google App Engine
This is Rietveld 408576698