File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6433,9 +6433,9 @@ namespace ts {
6433
6433
}
6434
6434
if (source.flags & TypeFlags.Enum) {
6435
6435
// 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));
6437
6437
// 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))) {
6439
6439
return result;
6440
6440
}
6441
6441
}
You can’t perform that action at this time.
0 commit comments