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

Unified Diff: lib/src/delegate/stream_consumer.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Update version. Created 3 years, 10 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/delegate/stream.dart ('k') | lib/src/delegate/stream_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/stream_consumer.dart
diff --git a/lib/src/delegate/stream_consumer.dart b/lib/src/delegate/stream_consumer.dart
index 4f495d0ef5a008bcc2a6bd14ea7df188899ed883..ba8304085095019e0d4de2cccbfd7badc9949a33 100644
--- a/lib/src/delegate/stream_consumer.dart
+++ b/lib/src/delegate/stream_consumer.dart
@@ -22,8 +22,8 @@ class DelegatingStreamConsumer<T> implements StreamConsumer<T> {
/// instance of `StreamConsumer`, not `StreamConsumer<T>`. This means that
/// calls to [addStream] may throw a [CastError] if the argument type doesn't
/// match the reified type of [consumer].
- static StreamConsumer/*<T>*/ typed/*<T>*/(StreamConsumer consumer) =>
- consumer is StreamConsumer/*<T>*/
+ static StreamConsumer<T> typed<T>(StreamConsumer consumer) =>
+ consumer is StreamConsumer<T>
? consumer
: new DelegatingStreamConsumer._(consumer);
« no previous file with comments | « lib/src/delegate/stream.dart ('k') | lib/src/delegate/stream_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698