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

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

Issue 2660333005: Change generic comment syntax to real generic syntax. (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
Index: lib/src/typed/future.dart
diff --git a/lib/src/typed/future.dart b/lib/src/typed/future.dart
index 995f4b5ca4fe9d33a8c0a36cacd06bb66cf50c31..8534753ae366e7ac37712e98bf039b5c1ee14390 100644
--- a/lib/src/typed/future.dart
+++ b/lib/src/typed/future.dart
@@ -14,8 +14,8 @@ 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.then((value) => onValue(value as T), onError: onError);
+ Future<S> then<S>(dynamic onValue(T value), {Function onError}) => _future
+ .then((value) => onValue(value as T), onError: onError);
Future<T> whenComplete(action()) =>
new TypeSafeFuture<T>(_future.whenComplete(action));

Powered by Google App Engine
This is Rietveld 408576698