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

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

Issue 2933663002: Annotate targets of implicit this property gets/sets in inference tests. (Closed)
Patch Set: Created 3 years, 6 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_type_on_var_from_field.dart
diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart
index 5d819c9c40d2465964ca4189dbe97e19f7966b8e..390ac88df399c25c1b3aa2ad8cccde84f7b18d54 100644
--- a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart
+++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart
@@ -9,13 +9,13 @@ class A {
int x = 0;
test1() {
- var /*@type=int*/ a = x;
+ var /*@type=int*/ a = /*@target=A::x*/ x;
a = /*error:INVALID_ASSIGNMENT*/ "hi";
a = 3;
- var /*@type=int*/ b = y;
+ var /*@type=int*/ b = /*@target=A::y*/ y;
b = /*error:INVALID_ASSIGNMENT*/ "hi";
b = 4;
- var /*@type=int*/ c = z;
+ var /*@type=int*/ c = /*@target=A::z*/ z;
c = /*error:INVALID_ASSIGNMENT*/ "hi";
c = 4;
}

Powered by Google App Engine
This is Rietveld 408576698