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

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

Issue 2921443002: Implement type inference for PropertyGet. (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_transitively2.dart
diff --git a/pkg/front_end/testcases/inference/propagate_inference_transitively2.dart b/pkg/front_end/testcases/inference/propagate_inference_transitively2.dart
index 7fcffdae165180c6ad8e9202457b39dc9457ed96..4fd048d509cd1bad71789356e462c0a14a24cd13 100644
--- a/pkg/front_end/testcases/inference/propagate_inference_transitively2.dart
+++ b/pkg/front_end/testcases/inference/propagate_inference_transitively2.dart
@@ -23,8 +23,10 @@ class D {
void main() {
var /*@type=D*/ d1 = new D();
- print(d1.c.b.a.x);
+ print(d1. /*@target=D::c*/ c. /*@target=C::b*/ b. /*@target=B::a*/ a
+ . /*@target=A::x*/ x);
D d2 = new D();
- print(d2.c.b.a.x);
+ print(d2. /*@target=D::c*/ c. /*@target=C::b*/ b. /*@target=B::a*/ a
+ . /*@target=A::x*/ x);
}

Powered by Google App Engine
This is Rietveld 408576698