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

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

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 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
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 f36e8c6b94629ebabeeebc22c2c9acd99e2accde..4f3ce6c5329e1377901b72013273ab1c23547cc2 100644
--- a/test/dart_codegen/expect/async/stream_pipe.dart
+++ b/test/dart_codegen/expect/async/stream_pipe.dart
@@ -126,11 +126,17 @@ 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 = transform, super(source);
+ _MapStream(Stream<S> source, T transform(S event)) : this._transform = DDC$RT.wrap((T f(S __u152)) {
+T c(S x0) => f(DDC$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, DDC$RT.type((__t155<S, T> _) {
+}
+), __t153, "Wrap", """line 230, column 27 of dart:async/stream_pipe.dart: """, transform is __t153), super(source);
void _handleData(S inputEvent, _EventSink<T> sink) {
T outputEvent;
try {
-outputEvent = ((__x117) => DDC$RT.cast(__x117, dynamic, T, "CastGeneral", """line 235, column 21 of dart:async/stream_pipe.dart: """, __x117 is T, false))(_transform(inputEvent));
+outputEvent = ((__x157) => DDC$RT.cast(__x157, dynamic, T, "CastGeneral", """line 235, column 21 of dart:async/stream_pipe.dart: """, __x157 is T, false))(_transform(inputEvent));
}
catch (e, s) {
_addErrorWithReplacement(sink, e, s);
@@ -279,3 +285,5 @@ sink._add(inputEvent);
}
}
}
+ typedef dynamic __t153(dynamic __u154);
+ typedef T __t155<S, T>(S __u156);
« no previous file with comments | « test/dart_codegen/expect/async/stream_impl.dart ('k') | test/dart_codegen/expect/async/stream_transformers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698