Skip to content

Commit 0b24f02

Browse files
committed
Use correct base primitive type
1 parent 86b0759 commit 0b24f02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18842,7 +18842,7 @@ namespace ts {
1884218842
// If the type parameter is constrained to the base primitive type we're checking for,
1884318843
// consider this a literal context. For example, given a type parameter 'T extends string',
1884418844
// this causes us to infer string literal types for T.
18845-
if (constraint.flags & (TypeFlags.String | TypeFlags.Number | TypeFlags.Boolean | TypeFlags.Enum | TypeFlags.UniqueESSymbol)) {
18845+
if (constraint.flags & (TypeFlags.String | TypeFlags.Number | TypeFlags.Boolean | TypeFlags.Enum | TypeFlags.Symbol)) {
1884618846
return true;
1884718847
}
1884818848
contextualType = constraint;

0 commit comments

Comments
 (0)