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

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

Issue 1221033008: Revert usage of delegating generative constructor, still not supported by VM. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/lib.status » ('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 b8e4e38d4d21807e9791a3acd8670c166db0ed3b..428e87835bb69938ed2d2a6e1b9d30260e8575e3 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -1673,7 +1673,10 @@ abstract class StreamTransformer<S, T> {
abstract class StreamIterator<T> {
/** Create a [StreamIterator] on [stream]. */
- factory StreamIterator(Stream<T> stream) = _StreamIteratorImpl<T>;
+ factory StreamIterator(Stream<T> stream)
+ // TODO(lrn): use redirecting factory constructor when type
+ // arguments are supported.
+ => new _StreamIteratorImpl<T>(stream);
/**
* Wait for the next stream value to be available.
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698