We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de837ed commit c6b77faCopy full SHA for c6b77fa
src/compiler/checker.ts
@@ -15773,7 +15773,7 @@ namespace ts {
15773
// type variable. If there is more than one naked type variable, give lower priority to
15774
// the inferences as they are less specific.
15775
if (typeVariableCount > 0) {
15776
- const unmatched = flatMap(sources, (s, i) => matched![i] ? undefined : s);
+ const unmatched = flatMap(sources, (s, i) => matched[i] ? undefined : s);
15777
if (unmatched.length) {
15778
const s = getUnionType(unmatched);
15779
const savePriority = priority;
0 commit comments