Open
Description
This code compiles fine, but the analyser gives an error:
The argument type 'List<T> Function<T>(T)' can't be assigned to the parameter type 'List<Z0> Function<F>(F)'.
Code:
List<T> toList<T>(T x) => [x];
R calc<R>(R Function<F>(F) f) {
return f(0);
}
void main() {
final res = calc(toList);
print(res);
}