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

Unified Diff: lib/src/delegate/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/sink.dart
diff --git a/lib/src/delegate/sink.dart b/lib/src/delegate/sink.dart
index 326c15bdb649fe07a45e99e9984831498e60d6eb..9fa115b9d43ff55708e259094018b493f463bb5b 100644
--- a/lib/src/delegate/sink.dart
+++ b/lib/src/delegate/sink.dart
@@ -20,8 +20,9 @@ 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);

Powered by Google App Engine
This is Rietveld 408576698