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

Unified Diff: pkg/analyzer/lib/src/cancelable_future.dart

Issue 2661263002: Fix errors and warnings (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/cancelable_future.dart
diff --git a/pkg/analyzer/lib/src/cancelable_future.dart b/pkg/analyzer/lib/src/cancelable_future.dart
index 43eb00c10c299b3d0fac32a535653a02758df55d..22ce10d71b272a34bd9dcd6b76fd746676ea7521 100644
--- a/pkg/analyzer/lib/src/cancelable_future.dart
+++ b/pkg/analyzer/lib/src/cancelable_future.dart
@@ -252,7 +252,7 @@ class _CancelableCompleterFuture<T> implements CancelableFuture<T> {
_completer._outerCompleter.future.catchError(onError, test: test);
@override
- Future/*<S>*/ then/*<S>*/(onValue(T value), {Function onError}) =>
+ Future/*<S>*/ then/*<S>*/(FutureOr<S> onValue(T value), {Function onError}) =>
Paul Berry 2017/02/01 16:49:53 Needs to be "/*<S>*/" to avoid errors in spec mode
Brian Wilkerson 2017/02/01 17:04:54 Saw that, thanks. CL is out.
_completer._outerCompleter.future.then(onValue, onError: onError);
@override
@@ -288,7 +288,7 @@ class _WrappedFuture<T> implements CancelableFuture<T> {
_future.catchError(onError, test: test);
@override
- Future/*<S>*/ then/*<S>*/(onValue(T value), {Function onError}) =>
+ Future/*<S>*/ then/*<S>*/(FutureOr<S> onValue(T value), {Function onError}) =>
Paul Berry 2017/02/01 16:49:53 Same here.
_future.then(onValue, onError: onError);
@override
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698