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

Unified Diff: test/dart_codegen/expect/async/stream_pipe.dart

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add comment Created 5 years, 9 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: test/dart_codegen/expect/async/stream_pipe.dart
diff --git a/test/dart_codegen/expect/async/stream_pipe.dart b/test/dart_codegen/expect/async/stream_pipe.dart
index 20819fe77bac6022b8f57213f1dbe1ba843b223c..30fab07f4a0f242a06fd376d18e8d4b5ea7e109c 100644
--- a/test/dart_codegen/expect/async/stream_pipe.dart
+++ b/test/dart_codegen/expect/async/stream_pipe.dart
@@ -126,17 +126,11 @@ sink._add(inputEvent);
}
typedef T _Transformation<S, T>(S value);
class _MapStream<S, T> extends _ForwardingStream<S, T> {final _Transformation _transform;
- _MapStream(Stream<S> source, T transform(S event)) : this._transform = DEVC$RT.wrap((T f(S __u138)) {
-T c(S x0) => f(DEVC$RT.cast(x0, dynamic, S, "CastParam", """line 230, column 27 of dart:async/stream_pipe.dart: """, x0 is S, false));
- return f == null ? null : c;
-}
-, transform, DEVC$RT.type((__t141<S, T> _) {
-}
-), __t139, "Wrap", """line 230, column 27 of dart:async/stream_pipe.dart: """, transform is __t139), super(source);
+ _MapStream(Stream<S> source, T transform(S event)) : this._transform = transform, super(source);
void _handleData(S inputEvent, _EventSink<T> sink) {
T outputEvent;
try {
-outputEvent = ((__x143) => DEVC$RT.cast(__x143, dynamic, T, "CastGeneral", """line 235, column 21 of dart:async/stream_pipe.dart: """, __x143 is T, false))(_transform(inputEvent));
+outputEvent = ((__x104) => DEVC$RT.cast(__x104, dynamic, T, "CastGeneral", """line 235, column 21 of dart:async/stream_pipe.dart: """, __x104 is T, false))(_transform(inputEvent));
}
catch (e, s) {
_addErrorWithReplacement(sink, e, s);
@@ -285,5 +279,3 @@ sink._add(inputEvent);
}
}
}
- typedef dynamic __t139(dynamic __u140);
- typedef T __t141<S, T>(S __u142);

Powered by Google App Engine
This is Rietveld 408576698