blob: 6ac60ac5088320bdda6feb26e55d57e4ea8e50af [file] [log] [blame]
// @dart = 2.9
import "package:expect/expect.dart";
// regression test for ddc #588
typedef int Int2Int(int x);
void foo(List<Int2Int> list) {
list.forEach((f) => print(f(42)));
}
void main() {
var l = <Function>[];
Expect.throwsTypeError(() => foo(l));
}