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