TypeScript/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts
2014-07-12 17:30:19 -07:00

6 lines
95 B
TypeScript

var f: {
(x: string): string;
(x: number): string
};
f = (a) => { return a.asdf }