Closed
Description
This issue was originally filed by [email protected]
There is a difference in behavior between production and checked modes on the test
co19/src/LibTest/async/Future/catchError_A03_t05
f() {
new Future.error(1).catchError((x,y,z){});
}
main() {
asyncStart();
runZoned(f, onError: (e) {
asyncEnd();
});
}
In production mode, one error event happens for callback's function type mismatch (three parameters are not supported).
In checked mode, two error event happen, first for callback's function type mismatch, second for error object '1'.