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

Unified Diff: sdk/lib/async/stream_impl.dart

Issue 1295843002: The return-value of 'asFuture' isn't necessarily related to the Stream's type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | tests/lib/async/stream_subscription_as_future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream_impl.dart
diff --git a/sdk/lib/async/stream_impl.dart b/sdk/lib/async/stream_impl.dart
index c23b0f040f6924d75f1b922f150e1d3765b28d3c..6dca1923361e37c961f39500f76ce359038d2504 100644
--- a/sdk/lib/async/stream_impl.dart
+++ b/sdk/lib/async/stream_impl.dart
@@ -203,7 +203,7 @@ class _BufferingStreamSubscription<T> implements StreamSubscription<T>,
}
Future asFuture([var futureValue]) {
- _Future<T> result = new _Future<T>();
+ _Future result = new _Future();
// Overwrite the onDone and onError handlers.
_onDone = () { result._complete(futureValue); };
« no previous file with comments | « no previous file | tests/lib/async/stream_subscription_as_future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698