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

Unified Diff: lib/src/typed/future.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Update version. Created 3 years, 10 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 | « lib/src/stream_subscription_transformer.dart ('k') | lib/src/typed/stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/typed/future.dart
diff --git a/lib/src/typed/future.dart b/lib/src/typed/future.dart
index 995f4b5ca4fe9d33a8c0a36cacd06bb66cf50c31..4630af7dade65761272c1ff8db5ab6defdee1a02 100644
--- a/lib/src/typed/future.dart
+++ b/lib/src/typed/future.dart
@@ -14,7 +14,7 @@ class TypeSafeFuture<T> implements Future<T> {
Future<T> catchError(Function onError, {bool test(Object error)}) async =>
new TypeSafeFuture<T>(_future.catchError(onError, test: test));
- Future/*<S>*/ then/*<S>*/(dynamic onValue(T value), {Function onError}) =>
+ Future<S> then<S>(dynamic onValue(T value), {Function onError}) =>
_future.then((value) => onValue(value as T), onError: onError);
Future<T> whenComplete(action()) =>
« no previous file with comments | « lib/src/stream_subscription_transformer.dart ('k') | lib/src/typed/stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698