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 |