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

Unified Diff: pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.strong.expect

Issue 2933663002: Annotate targets of implicit this property gets/sets in inference tests. (Closed)
Patch Set: Created 3 years, 6 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_type_on_var_from_field.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.strong.expect b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..0d41f9940a0b4e8e46278cfe34425d8d54e8fe21
--- /dev/null
+++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.strong.expect
@@ -0,0 +1,23 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class A extends core::Object {
+ field core::int x = 0;
+ field core::int y = null;
+ final field core::int z = 42;
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ method test1() → dynamic {
+ core::int a = this.{self::A::x};
+ a = "hi";
+ a = 3;
+ core::int b = this.{self::A::y};
+ b = "hi";
+ b = 4;
+ core::int c = this.{self::A::z};
+ c = "hi";
+ c = 4;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698