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

Unified Diff: pkg/front_end/testcases/inference/property_set_bad_setter.dart.direct.expect

Issue 2919623002: Implement type inference for PropertySet. (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/property_set_bad_setter.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.strong.expect b/pkg/front_end/testcases/inference/property_set_bad_setter.dart.direct.expect
similarity index 55%
copy from pkg/front_end/testcases/inference/propagate_inference_transitively.dart.strong.expect
copy to pkg/front_end/testcases/inference/property_set_bad_setter.dart.direct.expect
index d07a3c0614d49d39b92974172da0db331ca51aeb..910be1f627faac18eacab4798c6bc3d26838a27f 100644
--- a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/property_set_bad_setter.dart.direct.expect
@@ -3,15 +3,12 @@ import self as self;
import "dart:core" as core;
class A extends core::Object {
- field core::int x = 2;
constructor •() → void
: super core::Object::•()
;
+ set x() → void {}
}
-static method test5() → dynamic {
- self::A a1 = new self::A::•();
- a1.x = "hi";
- self::A a2 = new self::A::•();
- a2.x = "hi";
+static method f(self::A a) → void {
+ dynamic x = a.x = 0;
}
static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698