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; |
+ } |
+} |