diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 268033a6720..937dc5e76fc 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -7586,7 +7586,6 @@ namespace ts { const candidates = inferiority ? inferences.secondary || (inferences.secondary = []) : inferences.primary || (inferences.primary = []); - // Infer base primitive type for unit types. if (!contains(candidates, source)) { candidates.push(source); }