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

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

Issue 1021273004: Allow arity checks on dynamic function types (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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/zone.dart
diff --git a/test/dart_codegen/expect/async/zone.dart b/test/dart_codegen/expect/async/zone.dart
index e600f92164decbb3a71745df6bfaa23f64ceae5e..82654c1503d181fb482db63f837a32b417a6f9c5 100644
--- a/test/dart_codegen/expect/async/zone.dart
+++ b/test/dart_codegen/expect/async/zone.dart
@@ -150,17 +150,17 @@ _ZoneFunction implementation = _delegationTarget._runBinary;
ZoneCallback registerCallback(Zone zone, f()) {
_ZoneFunction implementation = _delegationTarget._registerCallback;
_Zone implZone = implementation.zone;
- return ((__x243) => DEVC$RT.cast(__x243, dynamic, __t180, "CastGeneral", """line 522, column 12 of dart:async/zone.dart: """, __x243 is __t180, false))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
+ return ((__x243) => DEVC$RT.cast(__x243, dynamic, __t180, "CastGeneral", """line 522, column 12 of dart:async/zone.dart: """, __x243 is __t180, true))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
}
ZoneUnaryCallback registerUnaryCallback(Zone zone, f(arg)) {
_ZoneFunction implementation = _delegationTarget._registerUnaryCallback;
_Zone implZone = implementation.zone;
- return ((__x244) => DEVC$RT.cast(__x244, dynamic, __t188, "CastGeneral", """line 529, column 12 of dart:async/zone.dart: """, __x244 is __t188, false))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
+ return ((__x244) => DEVC$RT.cast(__x244, dynamic, __t188, "CastGeneral", """line 529, column 12 of dart:async/zone.dart: """, __x244 is __t188, true))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
}
ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)) {
_ZoneFunction implementation = _delegationTarget._registerBinaryCallback;
_Zone implZone = implementation.zone;
- return ((__x245) => DEVC$RT.cast(__x245, dynamic, __t198, "CastGeneral", """line 536, column 12 of dart:async/zone.dart: """, __x245 is __t198, false))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
+ return ((__x245) => DEVC$RT.cast(__x245, dynamic, __t198, "CastGeneral", """line 536, column 12 of dart:async/zone.dart: """, __x245 is __t198, true))((implementation.function)(implZone, _parentDelegate(implZone), zone, f));
}
AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace) {
_ZoneFunction implementation = _delegationTarget._errorCallback;
@@ -351,17 +351,17 @@ _ZoneFunction implementation = this._runBinary;
ZoneCallback registerCallback(f()) {
_ZoneFunction implementation = this._registerCallback;
assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
- return ((__x251) => DEVC$RT.cast(__x251, dynamic, __t180, "CastGeneral", """line 820, column 12 of dart:async/zone.dart: """, __x251 is __t180, false))((implementation.function)(implementation.zone, parentDelegate, this, f));
+ return ((__x251) => DEVC$RT.cast(__x251, dynamic, __t180, "CastGeneral", """line 820, column 12 of dart:async/zone.dart: """, __x251 is __t180, true))((implementation.function)(implementation.zone, parentDelegate, this, f));
}
ZoneUnaryCallback registerUnaryCallback(f(arg)) {
_ZoneFunction implementation = this._registerUnaryCallback;
assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
- return ((__x252) => DEVC$RT.cast(__x252, dynamic, __t188, "CastGeneral", """line 828, column 12 of dart:async/zone.dart: """, __x252 is __t188, false))((implementation.function)(implementation.zone, parentDelegate, this, f));
+ return ((__x252) => DEVC$RT.cast(__x252, dynamic, __t188, "CastGeneral", """line 828, column 12 of dart:async/zone.dart: """, __x252 is __t188, true))((implementation.function)(implementation.zone, parentDelegate, this, f));
}
ZoneBinaryCallback registerBinaryCallback(f(arg1, arg2)) {
_ZoneFunction implementation = this._registerBinaryCallback;
assert (implementation != null); ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
- return ((__x253) => DEVC$RT.cast(__x253, dynamic, __t198, "CastGeneral", """line 836, column 12 of dart:async/zone.dart: """, __x253 is __t198, false))((implementation.function)(implementation.zone, parentDelegate, this, f));
+ return ((__x253) => DEVC$RT.cast(__x253, dynamic, __t198, "CastGeneral", """line 836, column 12 of dart:async/zone.dart: """, __x253 is __t198, true))((implementation.function)(implementation.zone, parentDelegate, this, f));
}
AsyncError errorCallback(Object error, StackTrace stackTrace) {
final _ZoneFunction implementation = this._errorCallback;
@@ -637,7 +637,7 @@ try {
if (onError is ZoneBinaryCallback) {
return self.parent.runBinary(onError, error, stackTrace);
}
- return self.parent.runUnary(DEVC$RT.cast(onError, Function, __t188, "CastGeneral", """line 1228, column 37 of dart:async/zone.dart: """, onError is __t188, false), error);
+ return self.parent.runUnary(DEVC$RT.cast(onError, Function, __t188, "CastGeneral", """line 1228, column 37 of dart:async/zone.dart: """, onError is __t188, true), error);
}
catch (e, s) {
if (identical(e, error)) {

Powered by Google App Engine
This is Rietveld 408576698