The following co19 test fails on dartdevc compiler with Error: Expected a value of type 'Object', but got one of type 'Null'
Object test1() async {
Object? o = null;
return o;
}
dynamic test2() async {
Object? o = null;
return o;
}
main() {
test1();
test2();
}
Error log
This test works well on all other platforms and must pass on derdevk as well