From c6b77fa5dfe9a396c24035ed77a947c81a1ba42f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 17 Jul 2019 15:15:56 -0700 Subject: [PATCH] Fix lint error --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 1a2fc79534e..81c2a9590ba 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -15773,7 +15773,7 @@ namespace ts { // type variable. If there is more than one naked type variable, give lower priority to // the inferences as they are less specific. if (typeVariableCount > 0) { - const unmatched = flatMap(sources, (s, i) => matched![i] ? undefined : s); + const unmatched = flatMap(sources, (s, i) => matched[i] ? undefined : s); if (unmatched.length) { const s = getUnionType(unmatched); const savePriority = priority;