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

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

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: Created 3 years, 11 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
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..cc0a028c906a31d4ccf11525e3f5e686c746373c 100644
--- a/lib/src/delegate/stream_sink.dart
+++ b/lib/src/delegate/stream_sink.dart
@@ -24,8 +24,9 @@ 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);

Powered by Google App Engine
This is Rietveld 408576698