Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(735)

Unified Diff: pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.strong.expect

Issue 2865623003: Implement type inference of constructor invocations in Fasta. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.strong.expect b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..2e3ce89d42c7cfdbdf6e3aa16b14bc7f45342230
--- /dev/null
+++ b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.strong.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::•(<core::int>[]);
+ new self::F0::•(<core::int>[3]);
+ new self::F0::•(<core::int>["hello"]);
+ new self::F0::•(<core::int>["hello", 3]);
+ new self::F1::•(a: <core::int>[]);
+ new self::F1::•(a: <core::int>[3]);
+ new self::F1::•(a: <core::int>["hello"]);
+ new self::F1::•(a: <core::int>["hello", 3]);
+ new self::F2::•(<core::int>[]);
+ new self::F2::•(<core::int>[3]);
+ new self::F2::•(<core::int>["hello"]);
+ new self::F2::•(<core::int>["hello", 3]);
+ new self::F3::•(<core::Iterable<core::int>>[]);
+ new self::F3::•(<core::Iterable<core::int>>[<core::int>[3]]);
+ new self::F3::•(<core::Iterable<core::int>>[<core::int>["hello"]]);
+ new self::F3::•(<core::Iterable<core::int>>[<core::int>["hello"], <core::int>[3]]);
+ new self::F4::•(a: <core::Iterable<core::int>>[]);
+ new self::F4::•(a: <core::Iterable<core::int>>[<core::int>[3]]);
+ new self::F4::•(a: <core::Iterable<core::int>>[<core::int>["hello"]]);
+ new self::F4::•(a: <core::Iterable<core::int>>[<core::int>["hello"], <core::int>[3]]);
+}

Powered by Google App Engine
This is Rietveld 408576698