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

Unified Diff: lib/src/delegate/stream.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.dart
diff --git a/lib/src/delegate/stream.dart b/lib/src/delegate/stream.dart
index 75622187d252884d12587de21a0905dd08e2f7d0..3a08590d55d4fd797882a5a86d074b3163ccf4e5 100644
--- a/lib/src/delegate/stream.dart
+++ b/lib/src/delegate/stream.dart
@@ -23,6 +23,7 @@ class DelegatingStream<T> extends StreamView<T> {
/// original generic type, by asserting that its events are instances of `T`
/// whenever they're provided. If they're not, the stream throws a
/// [CastError].
- static Stream/*<T>*/ typed/*<T>*/(Stream stream) =>
- stream is Stream/*<T>*/ ? stream : new TypeSafeStream/*<T>*/(stream);
+ static Stream<T> typed<T>(Stream stream) => stream is Stream<T>
+ ? stream
+ : new TypeSafeStream<T>(stream);
}

Powered by Google App Engine
This is Rietveld 408576698