TypeScript/tests/cases/compiler/contextualTyping24.ts
Nathan Shively-Sanders 8c87da523b First round of review comments addressed.
Only major thing is a bug fix in
`isContextSensitiveFunctionLikeDeclaration`, and turning on context
sensitivity to `this` even with `--strictThis` off.
2016-02-04 15:43:43 -08:00

1 line
101 B
TypeScript

var foo:(a:{():number; (i:number):number; })=>number; foo = function(this: void, a:string){return 5};