5 lines
163 B
TypeScript
5 lines
163 B
TypeScript
//// [contextualTyping39.ts]
|
|
var foo = <{ (): number; }> function() { return "err"; };
|
|
|
|
//// [contextualTyping39.js]
|
|
var foo = function () { return "err"; };
|