Closed
Description
The following results in a runtime error in checked mode (bar
is invoked with no args). In DDC, there is no runtime error. bar
is incorrectly called with one arg.
void foo() {
print('foo');
}
void bar(int x) {
print('bar $x');
}
List list = <dynamic>[ foo, bar ];
void main() {
list.forEach((void init()) => init());
}