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

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

Powered by Google App Engine
This is Rietveld 408576698