Index: pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.direct.expect b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ebea34d09ecabba5bae4c558c8a37f85ccb1af46 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.direct.expect |
@@ -0,0 +1,46 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+class F0 extends core::Object { |
+ constructor •(core::List<core::int> a) → void |
+ : super core::Object::•() {} |
+} |
+class F1 extends core::Object { |
+ constructor •({core::List<core::int> a = null}) → void |
+ : super core::Object::•() {} |
+} |
+class F2 extends core::Object { |
+ constructor •(core::Iterable<core::int> a) → void |
+ : super core::Object::•() {} |
+} |
+class F3 extends core::Object { |
+ constructor •(core::Iterable<core::Iterable<core::int>> a) → void |
+ : super core::Object::•() {} |
+} |
+class F4 extends core::Object { |
+ constructor •({core::Iterable<core::Iterable<core::int>> a = null}) → void |
+ : super core::Object::•() {} |
+} |
+static method main() → void { |
+ new self::F0::•(<dynamic>[]); |
+ new self::F0::•(<dynamic>[3]); |
+ new self::F0::•(<dynamic>["hello"]); |
+ new self::F0::•(<dynamic>["hello", 3]); |
+ new self::F1::•(a: <dynamic>[]); |
+ new self::F1::•(a: <dynamic>[3]); |
+ new self::F1::•(a: <dynamic>["hello"]); |
+ new self::F1::•(a: <dynamic>["hello", 3]); |
+ new self::F2::•(<dynamic>[]); |
+ new self::F2::•(<dynamic>[3]); |
+ new self::F2::•(<dynamic>["hello"]); |
+ new self::F2::•(<dynamic>["hello", 3]); |
+ new self::F3::•(<dynamic>[]); |
+ new self::F3::•(<dynamic>[<dynamic>[3]]); |
+ new self::F3::•(<dynamic>[<dynamic>["hello"]]); |
+ new self::F3::•(<dynamic>[<dynamic>["hello"], <dynamic>[3]]); |
+ new self::F4::•(a: <dynamic>[]); |
+ new self::F4::•(a: <dynamic>[<dynamic>[3]]); |
+ new self::F4::•(a: <dynamic>[<dynamic>["hello"]]); |
+ new self::F4::•(a: <dynamic>[<dynamic>["hello"], <dynamic>[3]]); |
+} |