Index: pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.direct.expect b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..479e513b61e3b0e80fbce0a5fc30f50a05742675 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.direct.expect |
@@ -0,0 +1,24 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+class A extends core::Object { |
+ field core::int x = 2; |
+ default constructor •() → void |
+ : super core::Object::•() |
+ ; |
+} |
+class B extends self::A { |
+ default constructor •() → void |
+ : super self::A::•() |
+ ; |
+ get x() → dynamic |
+ return 3; |
+} |
+static method foo() → dynamic { |
+ core::String y = new self::B::•().x; |
+ core::int z = new self::B::•().x; |
+} |
+static method main() → dynamic { |
+ self::foo(); |
+} |