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

Side by Side Diff: pkg/kernel/testcases/closures/arity.dart.expect

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (Closed)
Patch Set: Review comments Created 3 years, 3 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 unified diff | Download patch
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | pkg/kernel/testcases/closures/blocks.dart.expect » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method main() → dynamic { 5 static method main() → dynamic {
6 dynamic closures = <dynamic>[MakeClosure<(dynamic, dynamic, [dynamic]) → dynam ic>(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<(dyna mic, dynamic, dynamic, dynamic, dynamic) → dynamic>(self::closure#main#function# 3, null)]; 6 dynamic closures = <dynamic>[MakeClosure<(dynamic, dynamic, [dynamic]) → dynam ic>(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<(dyna mic, dynamic, dynamic, dynamic, dynamic) → dynamic>(self::closure#main#function# 3, null)];
7 for (dynamic c in closures) { 7 for (dynamic c in closures) {
8 core::bool ok = false; 8 core::bool ok = false;
9 try { 9 try {
10 c.call(1, 2, 3, 4); 10 c.call(1, 2, 3, 4);
11 } 11 }
12 on core::NoSuchMethodError catch(final core::NoSuchMethodError _) { 12 on core::NoSuchMethodError catch(final core::NoSuchMethodError _) {
13 ok = true; 13 ok = true;
14 } 14 }
15 if(!ok) { 15 if(!ok) {
16 throw core::Exception::•("Expected an error!"); 16 throw core::Exception::•("Expected an error!");
17 } 17 }
18 } 18 }
19 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct ion#4, null)).call(1, 2); 19 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct ion#4, null)).call(1, 2);
20 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct ion#5, null)).call(1, 2, 3); 20 (MakeClosure<(dynamic, dynamic, [dynamic]) → dynamic>(self::closure#main#funct ion#5, null)).call(1, 2, 3);
21 } 21 }
22 static method closure#main#function(Vector #contextParameter, dynamic x, dynamic y, [dynamic z]) → dynamic {} 22 static method closure#main#function(dynamic #contextParameter, dynamic x, dynami c y, [dynamic z]) → dynamic {}
23 static method closure#main#function#1(Vector #contextParameter, dynamic x, dynam ic y, dynamic z) → dynamic {} 23 static method closure#main#function#1(dynamic #contextParameter, dynamic x, dyna mic y, dynamic z) → dynamic {}
24 static method closure#main#function#2(Vector #contextParameter, dynamic x, dynam ic y, {dynamic z}) → dynamic {} 24 static method closure#main#function#2(dynamic #contextParameter, dynamic x, dyna mic y, {dynamic z}) → dynamic {}
25 static method closure#main#function#3(Vector #contextParameter, dynamic x, dynam ic y, dynamic z, dynamic w, dynamic v) → dynamic {} 25 static method closure#main#function#3(dynamic #contextParameter, dynamic x, dyna mic y, dynamic z, dynamic w, dynamic v) → dynamic {}
26 static method closure#main#function#4(Vector #contextParameter, dynamic x, dynam ic y, [dynamic z]) → dynamic {} 26 static method closure#main#function#4(dynamic #contextParameter, dynamic x, dyna mic y, [dynamic z]) → dynamic {}
27 static method closure#main#function#5(Vector #contextParameter, dynamic x, dynam ic y, [dynamic z]) → dynamic {} 27 static method closure#main#function#5(dynamic #contextParameter, dynamic x, dyna mic y, [dynamic z]) → dynamic {}
OLDNEW
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | pkg/kernel/testcases/closures/blocks.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698