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

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

Issue 1250373007: Fix missing generic type parameters on streams. (Closed) Base URL: https://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 | sdk/lib/async/stream_controller.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..6eb737ef666cdbfabf5b13d42117b8bdbb9c634c 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);
}
/**
@@ -864,7 +864,7 @@ abstract class Stream<T> {
* the returned stream is listened to.
*/
Stream<T> takeWhile(bool test(T element)) {
- return new _TakeWhileStream(this, test);
+ return new _TakeWhileStream<T>(this, test);
}
/**
@@ -875,7 +875,7 @@ abstract class Stream<T> {
* the returned stream is listened to.
*/
Stream<T> skip(int count) {
- return new _SkipStream(this, count);
+ return new _SkipStream<T>(this, count);
}
/**
@@ -891,7 +891,7 @@ abstract class Stream<T> {
* the returned stream is listened to.
*/
Stream<T> skipWhile(bool test(T element)) {
- return new _SkipWhileStream(this, test);
+ return new _SkipWhileStream<T>(this, test);
}
/**
@@ -908,7 +908,7 @@ abstract class Stream<T> {
* will individually perform the `equals` test.
*/
Stream<T> distinct([bool equals(T previous, T next)]) {
- return new _DistinctStream(this, equals);
+ return new _DistinctStream<T>(this, equals);
}
/**
« no previous file with comments | « no previous file | sdk/lib/async/stream_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698