11 lines
258 B
TypeScript
11 lines
258 B
TypeScript
//// [contextualTypingOfLambdaWithMultipleSignatures2.ts]
|
|
var f: {
|
|
(x: string): string;
|
|
(x: number): string
|
|
};
|
|
|
|
f = (a) => { return a.asdf }
|
|
|
|
//// [contextualTypingOfLambdaWithMultipleSignatures2.js]
|
|
var f;
|
|
f = function (a) { return a.asdf; };
|