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

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

Issue 2915763008: Perform type inference on default values of optional/named parameters. (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
« no previous file with comments | « pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.outline.expect ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.strong.expect b/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..c8d5b6367c48ea741ea9033c1272682bf3eb6602
--- /dev/null
+++ b/pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.strong.expect
@@ -0,0 +1,22 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class C<T extends core::Object> extends core::Object {
+ constructor optional(([self::C::T]) → void func) → void
+ : super core::Object::•() {}
+ constructor named(({x: self::C::T}) → void func) → void
+ : super core::Object::•() {}
+}
+static method optional_toplevel([dynamic x = const <core::int>[0]]) → void {}
+static method named_toplevel({dynamic x = const <core::int>[0]}) → void {}
+static method main() → dynamic {
+ function optional_local([dynamic x = const <core::int>[0]]) → void {}
+ function named_local({dynamic x = const <core::int>[0]}) → void {}
+ self::C<dynamic> c_optional_toplevel = new self::C::optional<dynamic>(self::optional_toplevel);
+ self::C<dynamic> c_named_toplevel = new self::C::named<dynamic>(self::named_toplevel);
+ self::C<dynamic> c_optional_local = new self::C::optional<dynamic>(optional_local);
+ self::C<dynamic> c_named_local = new self::C::named<dynamic>(named_local);
+ self::C<dynamic> c_optional_closure = new self::C::optional<dynamic>(([dynamic x = const <core::int>[0]]) → core::Null {});
+ self::C<dynamic> c_named_closure = new self::C::named<dynamic>(({dynamic x = const <core::int>[0]}) → core::Null {});
+}
« no previous file with comments | « pkg/front_end/testcases/inference/parameter_defaults_upwards.dart.outline.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698