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

Unified Diff: tests/lib/async/zone_run_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_run_guarded_test.dart ('k') | tests/lib/async/zone_run_unary_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/zone_run_test.dart
diff --git a/tests/lib/async/zone_run_test.dart b/tests/lib/async/zone_run_test.dart
index 448ad0994eb8d2b1aed669e80e3bc8b5eba55eff..1a40370cd09a7e7e0dfe8aabf5593ee1002c70e8 100644
--- a/tests/lib/async/zone_run_test.dart
+++ b/tests/lib/async/zone_run_test.dart
@@ -13,13 +13,13 @@ main() {
bool shouldForward = true;
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
- run: (Zone self, ZoneDelegate parent, Zone origin, f()) {
+ run: <R>(Zone self, ZoneDelegate parent, Zone origin, R f()) {
// The zone is still the same as when origin.run was invoked, which
// is the root zone. (The origin zone hasn't been set yet).
Expect.identical(Zone.ROOT, Zone.current);
events.add("forked.run");
if (shouldForward) return parent.run(origin, f);
- return 42;
+ return 42 as R;
}));
events.add("zone forked");
« no previous file with comments | « tests/lib/async/zone_run_guarded_test.dart ('k') | tests/lib/async/zone_run_unary_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698