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

Unified Diff: pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.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/propagate_inference_to_field_in_class.dart
diff --git a/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
index ae8e053c26929f7409dbc635b648dea8cf09b0d9..3a46d14bd92423307c7e6da546f44bba44a8d434 100644
--- a/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
+++ b/pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.dart
@@ -11,8 +11,7 @@ class A {
test() {
var /*@type=A*/ a = new A();
- A b = /*@promotedType=none*/ a; // doesn't require down cast
- print(/*@promotedType=none*/ a.x); // doesn't require dynamic invoke
- print(/*@promotedType=none*/ a.x /*@target=num::+*/ +
- 2); // ok to use in bigger expression
+ A b = a; // doesn't require down cast
+ print(a.x); // doesn't require dynamic invoke
+ print(a.x /*@target=num::+*/ + 2); // ok to use in bigger expression
}

Powered by Google App Engine
This is Rietveld 408576698