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

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

Issue 2878173002: Infer return types of closures (basic support). (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/lambda_return_type.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/lambda_return_type.dart.strong.expect b/pkg/front_end/testcases/inference/lambda_return_type.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..61410a53b210e1460eba3fa4a138ebedd3c7fb08
--- /dev/null
+++ b/pkg/front_end/testcases/inference/lambda_return_type.dart.strong.expect
@@ -0,0 +1,16 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ core::int i = 1;
+ core::Object o = 1;
+ () → core::num a = () → core::int => i;
+ () → core::num b = () → core::Object => o;
+ () → core::num c = () → core::int {
+ return i;
+ };
+ () → core::num d = () → core::num {
+ return o;
+ };
+}
« no previous file with comments | « pkg/front_end/testcases/inference/lambda_return_type.dart.outline.expect ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698