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

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

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 years, 5 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/typed/stream.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/typed/stream_subscription.dart
diff --git a/lib/src/typed/stream_subscription.dart b/lib/src/typed/stream_subscription.dart
index 800a4badd48f114ccf8c8aa9a4454ba5c2487082..2cd4ddfd1cf57ffc19bb458f3d1168fc40f3487c 100644
--- a/lib/src/typed/stream_subscription.dart
+++ b/lib/src/typed/stream_subscription.dart
@@ -32,5 +32,7 @@ class TypeSafeStreamSubscription<T> implements StreamSubscription<T> {
}
Future cancel() => _subscription.cancel();
- Future asFuture([futureValue]) => _subscription.asFuture(futureValue);
+
+ Future/*<E>*/ asFuture/*<E>*/([/*=E*/ futureValue]) =>
+ _subscription.asFuture(futureValue);
}
« no previous file with comments | « lib/src/typed/stream.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698