TypeScript/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures.js
2015-02-06 18:45:09 -08:00

13 lines
279 B
JavaScript

//// [contextualTypingOfLambdaWithMultipleSignatures.ts]
interface Foo {
getFoo(n: number): void;
getFoo(s: string): void;
}
var foo: Foo;
foo.getFoo = bar => { };
//// [contextualTypingOfLambdaWithMultipleSignatures.js]
var foo;
foo.getFoo = function (bar) { };