File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -16939,7 +16939,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
16939
16939
if (includes & (TypeFlags.Enum | TypeFlags.Literal | TypeFlags.UniqueESSymbol | TypeFlags.TemplateLiteral | TypeFlags.StringMapping) || includes & TypeFlags.Void && includes & TypeFlags.Undefined) {
16940
16940
removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & UnionReduction.Subtype));
16941
16941
}
16942
- if (includes & TypeFlags.StringLiteral && includes & TypeFlags.TemplateLiteral) {
16942
+ if (unionReduction === UnionReduction.Subtype && ( includes & TypeFlags.StringLiteral && includes & TypeFlags.TemplateLiteral) ) {
16943
16943
removeStringLiteralsMatchedByTemplateLiterals(typeSet);
16944
16944
}
16945
16945
if (unionReduction === UnionReduction.Subtype) {
You can’t perform that action at this time.
0 commit comments