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

Unified Diff: pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.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/infer_correctly_on_multiple_variables_declared_together.dart
diff --git a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart
index 4e5bd461a681bd0553ed21d15f11a72e6c53f55f..0de2d2619a47e988585abe6dcb197ea94afa175a 100644
--- a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart
+++ b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart
@@ -22,13 +22,13 @@ foo() {
String s;
int i;
- s = /*info:DYNAMIC_CAST*/ new B().x;
- s = /*error:INVALID_ASSIGNMENT*/ new B().y;
- s = new B().z;
- s = /*error:INVALID_ASSIGNMENT*/ new B().w;
+ s = /*info:DYNAMIC_CAST*/ new B(). /*@target=B::x*/ x;
+ s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B::y*/ y;
+ s = new B(). /*@target=B::z*/ z;
+ s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B::w*/ w;
- i = /*info:DYNAMIC_CAST*/ new B().x;
- i = new B().y;
- i = /*error:INVALID_ASSIGNMENT*/ new B().z;
- i = new B().w;
+ i = /*info:DYNAMIC_CAST*/ new B(). /*@target=B::x*/ x;
+ i = new B(). /*@target=B::y*/ y;
+ i = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B::z*/ z;
+ i = new B(). /*@target=B::w*/ w;
}

Powered by Google App Engine
This is Rietveld 408576698