We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b24f02 commit ccba128Copy full SHA for ccba128
src/compiler/checker.ts
@@ -18842,7 +18842,7 @@ namespace ts {
18842
// If the type parameter is constrained to the base primitive type we're checking for,
18843
// consider this a literal context. For example, given a type parameter 'T extends string',
18844
// this causes us to infer string literal types for T.
18845
- if (constraint.flags & (TypeFlags.String | TypeFlags.Number | TypeFlags.Boolean | TypeFlags.Enum | TypeFlags.Symbol)) {
+ if (constraint.flags & (TypeFlags.String | TypeFlags.Number | TypeFlags.Boolean | TypeFlags.Enum | TypeFlags.ESSymbol)) {
18846
return true;
18847
}
18848
contextualType = constraint;
0 commit comments