TypeScript/tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts

6 lines
95 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
var f: {
(x: string): string;
(x: number): string
};
f = (a) => { return a.asdf }