Index: pkg/front_end/testcases/inference/downwards_inference_inside_top_level.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/downwards_inference_inside_top_level.dart.direct.expect b/pkg/front_end/testcases/inference/downwards_inference_inside_top_level.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f8902815c94a9de0364c73cd8f5274346bcf549f |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/downwards_inference_inside_top_level.dart.direct.expect |
@@ -0,0 +1,18 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+class A extends core::Object { |
+ field self::B<core::int> b = null; |
+ default constructor •() → void |
+ : super core::Object::•() |
+ ; |
+} |
+class B<T extends core::Object> extends core::Object { |
+ constructor •(self::B::T x) → void |
+ : super core::Object::•() |
+ ; |
+} |
+static field dynamic t1 = let final dynamic #t1 = new self::A::•() in let final dynamic #t2 = #t1.b = new self::B::•<dynamic>(1) in #t1; |
+static field dynamic t2 = <self::B<core::int>>[new self::B::•<dynamic>(2)]; |
+static method main() → dynamic {} |