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

Unified Diff: lib/src/delegate/event_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/event_sink.dart
diff --git a/lib/src/delegate/event_sink.dart b/lib/src/delegate/event_sink.dart
index 14501b28d3ea65906c4cf3ebd51cf5a5c61e74ac..a06b9859bbbfcea01833fc79c0ea5051f0853b3d 100644
--- a/lib/src/delegate/event_sink.dart
+++ b/lib/src/delegate/event_sink.dart
@@ -22,8 +22,9 @@ class DelegatingEventSink<T> implements EventSink<T> {
/// instance of `EventSink`, not `EventSink<T>`. This means that calls to
/// [add] may throw a [CastError] if the argument type doesn't match the
/// reified type of [sink].
- static EventSink/*<T>*/ typed/*<T>*/(EventSink sink) =>
- sink is EventSink/*<T>*/ ? sink : new DelegatingEventSink._(sink);
+ static EventSink<T> typed<T>(EventSink sink) => sink is EventSink<T>
+ ? sink
+ : new DelegatingEventSink._(sink);
void add(T data) {
_sink.add(data);

Powered by Google App Engine
This is Rietveld 408576698