Skip to content

Commit 9861c0f

Browse files
committed
Fix lint
1 parent e90f5e0 commit 9861c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6433,9 +6433,9 @@ namespace ts {
64336433
}
64346434
if (source.flags & TypeFlags.Enum) {
64356435
// 1. look through the target union for a literal whose base type is related to the source
6436-
let lit = find((<UnionType>target).types, t => t.flags & TypeFlags.EnumLiteral && isEnumTypeRelatedTo(<EnumType>source, (<EnumLiteralType>t).baseType));
6436+
const lit = find((<UnionType>target).types, t => t.flags & TypeFlags.EnumLiteral && isEnumTypeRelatedTo(<EnumType>source, (<EnumLiteralType>t).baseType));
64376437
// 2. if found, the base type is only assignable to source if all its literals are in the target union.
6438-
if (lit && (result = isRelatedTo((lit as EnumLiteralType).baseType, target, false))) {
6438+
if (lit && (result = isRelatedTo((lit as EnumLiteralType).baseType, target, /*reportErrors*/ false))) {
64396439
return result;
64406440
}
64416441
}

0 commit comments

Comments
 (0)