Closed

Description
TypeScript Version: 2.7.0-dev.20171114
Code
function f(xs: number[]) {
xs.every(x => x + 1); // Error
xs.some(x => x + 1); // Error
xs.find(x => x + 1); // Error
xs.filter(x => x + 1); // No error?
}
Expected behavior:
All are errors.
Actual behavior:
The callback passed to filter
is not type checked.