(sources, type)
| 76372 | return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2 /* UnionReduction.Subtype */)); |
| 76373 | } |
| 76374 | function createCombinedSymbolForOverloadFailure(sources, type) { |
| 76375 | // This function is currently only used for erroneous overloads, so it's good enough to just use the first source. |
| 76376 | return createSymbolWithType(ts.first(sources), type); |
| 76377 | } |
| 76378 | function pickLongestCandidateSignature(node, candidates, args, checkMode) { |
| 76379 | // Pick the longest signature. This way we can get a contextual type for cases like: |
| 76380 | // declare function f(a: { xa: number; xb: number; }, b: number); |
no test coverage detected