13 lines
264 B
JavaScript
13 lines
264 B
JavaScript
//// [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;
|
|
};
|