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

Unified Diff: pkg/scheduled_test/lib/src/substitute_future.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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
Index: pkg/scheduled_test/lib/src/substitute_future.dart
diff --git a/pkg/scheduled_test/lib/src/substitute_future.dart b/pkg/scheduled_test/lib/src/substitute_future.dart
index 4122a3ddc277492a5d994256a103064b76081750..abbb5d4f75058ab14fe2ac3ba480c12cf9e75759 100644
--- a/pkg/scheduled_test/lib/src/substitute_future.dart
+++ b/pkg/scheduled_test/lib/src/substitute_future.dart
@@ -24,9 +24,9 @@ class SubstituteFuture<T> implements Future<T> {
}
Stream<T> asStream() => _completer.future.asStream();
- Future catchError(onError(AsyncError asyncError), {bool test(error)}) =>
+ Future catchError(onError(asyncError), {bool test(error)}) =>
_completer.future.catchError(onError, test: test);
- Future then(onValue(T value), {onError(AsyncError asyncError)}) =>
+ Future then(onValue(T value), {onError(error)}) =>
_completer.future.then(onValue, onError: onError);
Future<T> whenComplete(action()) => _completer.future.whenComplete(action);
« no previous file with comments | « pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart ('k') | pkg/scheduled_test/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698