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

Unified Diff: lib/src/delegate/event_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 | « CHANGELOG.md ('k') | lib/src/delegate/future.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..54c3e52b65098d25ac06f48d970df78862373cde 100644
--- a/lib/src/delegate/event_sink.dart
+++ b/lib/src/delegate/event_sink.dart
@@ -22,8 +22,8 @@ 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);
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/delegate/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698