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

Unified Diff: tests/lib/async/zone_fork_test.dart

Issue 3014593002: Use generic functions in zones. (Closed)
Patch Set: Added changes missing from patch set #2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/async/zone_error_callback_test.dart ('k') | tests/lib/async/zone_register_callback_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/zone_fork_test.dart
diff --git a/tests/lib/async/zone_fork_test.dart b/tests/lib/async/zone_fork_test.dart
index f3d98ea68a942ce76bbf6fb4a93f5e57f0185ab1..3def57f02f46b7147c5470599f6a1b67e8b7163f 100644
--- a/tests/lib/async/zone_fork_test.dart
+++ b/tests/lib/async/zone_fork_test.dart
@@ -21,9 +21,9 @@ main() {
events.add("forked.fork");
Function descriptionRun = zoneSpecification.run;
ZoneSpecification modified = new ZoneSpecification.from(zoneSpecification,
- run: (self, parent, origin, f) {
+ run: <R>(self, parent, origin, R f()) {
events.add("wrapped run");
- return descriptionRun(self, parent, origin, () {
+ return descriptionRun<R>(self, parent, origin, () {
events.add("wrapped f");
return f();
});
@@ -33,7 +33,7 @@ main() {
events.add("start");
Zone forkedChild = forked.fork(specification: new ZoneSpecification(
- run: (Zone self, ZoneDelegate parent, Zone origin, f()) {
+ run: <R>(Zone self, ZoneDelegate parent, Zone origin, R f()) {
events.add("executing child run");
return parent.run(origin, f);
}));
« no previous file with comments | « tests/lib/async/zone_error_callback_test.dart ('k') | tests/lib/async/zone_register_callback_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698