TypeScript/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts

7 lines
121 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface Foo {
getFoo(n: number): void;
getFoo(s: string): void;
}
var foo: Foo;
foo.getFoo = bar => { };