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

Unified Diff: pkg/front_end/testcases/inference/parameter_defaults_downwards.dart.direct.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
Index: pkg/front_end/testcases/inference/parameter_defaults_downwards.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/parameter_defaults_downwards.dart.direct.expect b/pkg/front_end/testcases/inference/parameter_defaults_downwards.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..1edb995289d554f6dad216a8fb20ffa6c50cc203
--- /dev/null
+++ b/pkg/front_end/testcases/inference/parameter_defaults_downwards.dart.direct.expect
@@ -0,0 +1,12 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method optional_toplevel([core::List<core::int> x = const <dynamic>[]]) → void {}
+static method named_toplevel({core::List<core::int> x = const <dynamic>[]}) → void {}
+static method main() → dynamic {
+ function optional_local([core::List<core::int> x = const <dynamic>[]]) → void {}
+ function named_local({core::List<core::int> x = const <dynamic>[]}) → void {}
+ dynamic optional_closure = ([core::List<core::int> x = const <dynamic>[]]) → dynamic {};
+ dynamic name_closure = ({core::List<core::int> x = const <dynamic>[]}) → dynamic {};
+}

Powered by Google App Engine
This is Rietveld 408576698