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

Unified Diff: pkg/kernel/testcases/closures/arity.dart.expect

Issue 3000333002: Fix several bugs in closure conversion. (Closed)
Patch Set: Comments. Created 3 years, 4 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/kernel/testcases/closures/arity.dart ('k') | pkg/kernel/testcases/closures/blocks.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/closures/arity.dart.expect
diff --git a/pkg/kernel/testcases/closures/arity.dart.expect b/pkg/kernel/testcases/closures/arity.dart.expect
new file mode 100644
index 0000000000000000000000000000000000000000..5a89267f75c00333259a9377b4eb06e7e0bb23f8
--- /dev/null
+++ b/pkg/kernel/testcases/closures/arity.dart.expect
@@ -0,0 +1,27 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ dynamic closures = <dynamic>[MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#function, null), MakeClosure<(dynamic, dynamic, dynamic) → dynamic>(self::closure#main#function#1, null), MakeClosure<(dynamic, dynamic, {z: dynamic}) → dynamic>(self::closure#main#function#2, null), MakeClosure<(dynamic, dynamic, dynamic, dynamic, dynamic) → dynamic>(self::closure#main#function#3, null)];
+ for (dynamic c in closures) {
+ core::bool ok = false;
+ try {
+ c.call(1, 2, 3, 4);
+ }
+ on core::NoSuchMethodError catch(final core::NoSuchMethodError _) {
+ ok = true;
+ }
+ if(!ok) {
+ throw core::Exception::•("Expected an error!");
+ }
+ }
+ (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#function#4, null)).call(1, 2);
+ (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#function#5, null)).call(1, 2, 3);
+}
+static method closure#main#function(Vector #contextParameter, dynamic x, dynamic y, [dynamic z]) → dynamic {}
+static method closure#main#function#1(Vector #contextParameter, dynamic x, dynamic y, dynamic z) → dynamic {}
+static method closure#main#function#2(Vector #contextParameter, dynamic x, dynamic y, {dynamic z}) → dynamic {}
+static method closure#main#function#3(Vector #contextParameter, dynamic x, dynamic y, dynamic z, dynamic w, dynamic v) → dynamic {}
+static method closure#main#function#4(Vector #contextParameter, dynamic x, dynamic y, [dynamic z]) → dynamic {}
+static method closure#main#function#5(Vector #contextParameter, dynamic x, dynamic y, [dynamic z]) → dynamic {}
« no previous file with comments | « pkg/kernel/testcases/closures/arity.dart ('k') | pkg/kernel/testcases/closures/blocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698