Only major thing is a bug fix in `isContextSensitiveFunctionLikeDeclaration`, and turning on context sensitivity to `this` even with `--strictThis` off.
6 lines
210 B
TypeScript
6 lines
210 B
TypeScript
//// [contextualTyping24.ts]
|
|
var foo:(a:{():number; (i:number):number; })=>number; foo = function(this: void, a:string){return 5};
|
|
|
|
//// [contextualTyping24.js]
|
|
var foo;
|
|
foo = function (a) { return 5; };
|