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

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

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and address comments 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
« no previous file with comments | « test/dart_codegen/expect/async/stream_transformers.dart ('k') | test/dart_codegen/expect/async/zone.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/async/timer.dart
diff --git a/test/dart_codegen/expect/async/timer.dart b/test/dart_codegen/expect/async/timer.dart
index f701e889170871bc4e6349c84c38c5c71a7d41fd..2a87bef06a847a59028b78c14a117eccfb7cf838 100644
--- a/test/dart_codegen/expect/async/timer.dart
+++ b/test/dart_codegen/expect/async/timer.dart
@@ -9,11 +9,11 @@ part of dart.async;
if (Zone.current == Zone.ROOT) {
return Zone.current.createPeriodicTimer(duration, callback);
}
- return Zone.current.createPeriodicTimer(duration, Zone.current.bindUnaryCallback(DEVC$RT.wrap((void f(Timer __u162)) {
- void c(Timer x0) => f(DEVC$RT.cast(x0, dynamic, Timer, "CastParam", """line 80, column 50 of dart:async/timer.dart: """, x0 is Timer, true));
+ return Zone.current.createPeriodicTimer(duration, ((__x142) => DEVC$RT.wrap((dynamic f(dynamic __u137)) {
+ dynamic c(dynamic x0) => f(x0);
return f == null ? null : c;
}
- , callback, __t165, __t163, "Wrap", """line 80, column 50 of dart:async/timer.dart: """, callback is __t163), runGuarded: true));
+ , __x142, __t140, __t138, "Wrap", """line 80, column 19 of dart:async/timer.dart: """, __x142 is __t138))(Zone.current.bindUnaryCallback(callback, runGuarded: true)));
}
static void run(void callback()) {
new Timer(Duration.ZERO, callback);
@@ -23,5 +23,5 @@ part of dart.async;
external static Timer _createTimer(Duration duration, void callback());
external static Timer _createPeriodicTimer(Duration duration, void callback(Timer timer));
}
- typedef dynamic __t163(dynamic __u164);
- typedef void __t165(Timer __u166);
+ typedef void __t138(Timer __u139);
+ typedef dynamic __t140(dynamic __u141);
« no previous file with comments | « test/dart_codegen/expect/async/stream_transformers.dart ('k') | test/dart_codegen/expect/async/zone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698