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

Unified Diff: lib/src/delegate/stream_sink.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_consumer.dart ('k') | lib/src/delegate/stream_subscription.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/delegate/stream_sink.dart
diff --git a/lib/src/delegate/stream_sink.dart b/lib/src/delegate/stream_sink.dart
index 9b52b19e5d5e642dca21e3e1b2ab812cbd8056df..198df8a785dcfae6c0adf4c58194899505013a40 100644
--- a/lib/src/delegate/stream_sink.dart
+++ b/lib/src/delegate/stream_sink.dart
@@ -24,8 +24,8 @@ class DelegatingStreamSink<T> implements StreamSink<T> {
/// of `StreamSink`, not `StreamSink<T>`. This means that calls to [add] may
/// throw a [CastError] if the argument type doesn't match the reified type of
/// [sink].
- static StreamSink/*<T>*/ typed/*<T>*/(StreamSink sink) =>
- sink is StreamSink/*<T>*/ ? sink : new DelegatingStreamSink._(sink);
+ static StreamSink<T> typed<T>(StreamSink sink) =>
+ sink is StreamSink<T> ? sink : new DelegatingStreamSink._(sink);
void add(T data) {
_sink.add(data);
« no previous file with comments | « lib/src/delegate/stream_consumer.dart ('k') | lib/src/delegate/stream_subscription.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698