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