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

Unified Diff: pkg/front_end/testcases/inference/propagate_inference_to_field_in_class.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_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 3a46d14bd92423307c7e6da546f44bba44a8d434..1ce8eae97bb0fe59a057e7b2d8c8c29e59bfccc9 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
@@ -9,9 +9,10 @@ class A {
int x = 2;
}
-test() {
+main() {
var /*@type=A*/ a = new A();
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
+ print(a. /*@target=A::x*/ x); // doesn't require dynamic invoke
+ print(a. /*@target=A::x*/ x /*@target=num::+*/ +
+ 2); // ok to use in bigger expression
}

Powered by Google App Engine
This is Rietveld 408576698