TypeScript Version: 2.4.2
Code
function foo(f: (x: number) => void) {}
foo((x, arg = true) => {});
Tested in Playground with noImplicitAny on.
Expected behavior:
Type of arg is inferred to be boolean, or an error is thrown ("arg implicitly has 'any' type").
Actual behavior:
Type of arg is any, and no error is thrown.