-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created

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.
DanielRosenwasser, thorn0 and krzkaczor
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created