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

Unified Diff: test/chain/utils.dart

Issue 1871763002: Fix the remaining strong mode warnings. (Closed) Base URL: https://github.com/dart-lang/stack_trace.git@master
Patch Set: Created 4 years, 8 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
« test/chain/chain_test.dart ('K') | « test/chain/chain_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/chain/utils.dart
diff --git a/test/chain/utils.dart b/test/chain/utils.dart
index 366502cbbddc5b7a14ab60803bf822cee23357b3..f345fc0070d11d01eb7876a747269c90655696ca 100644
--- a/test/chain/utils.dart
+++ b/test/chain/utils.dart
@@ -73,8 +73,11 @@ Future<Chain> chainForTrace(asyncFn(callback()), callback()) {
new Future.value().then((_) => callback())
.catchError(completer.completeError);
});
+
+ // TODO(rnystrom): Remove this cast if catchError() gets a better type.
return completer.future
- .catchError((_, stackTrace) => new Chain.forTrace(stackTrace));
+ .catchError((_, stackTrace) => new Chain.forTrace(stackTrace))
+ as Future<Chain>;
}
/// Runs [callback] in a [Chain.capture] zone and returns a Future that
« test/chain/chain_test.dart ('K') | « test/chain/chain_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698