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; |
} |