<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> **TypeScript Version:** 2.4.2 **Code** ```ts 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.