Apologies for the vague title, I can't quite pin down the cause of this, hence the poor wording
$ tsc --version
1.9.0-dev.20160208
The problem is best described using the following example:
// using --noImplicitAnyleta=undefined;// OK: error as expected: Variable 'a' implicitly has an 'any' type.functionmine<T>(meth: ()=>T): T{returnmeth();}// **Problem**: x has type 'any' below// Should be a compiler errorletx=mine(()=>{returnundefined;});
Apologies for the vague title, I can't quite pin down the cause of this, hence the poor wording
The problem is best described using the following example: