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

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

Issue 1238143003: Added type variable to generic in Stream#take() so that subsequent type checks will work correctly. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | tests/lib/async/stream_typecheck_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream.dart
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
index 428e87835bb69938ed2d2a6e1b9d30260e8575e3..2c01e75da097bad31d5d3a6ccbd8aa5da97ef6fc 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -842,7 +842,7 @@ abstract class Stream<T> {
* the returned stream is listened to.
*/
Stream<T> take(int count) {
- return new _TakeStream(this, count);
+ return new _TakeStream<T>(this, count);
}
/**
« no previous file with comments | « no previous file | tests/lib/async/stream_typecheck_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698