You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intersections with template literal types not correctly reduced #41161
In #40598 we added logic to reduce intersections of string literal types and template literal types. This logic incorrectly produces single-element intersections instead of reducing to the single constituent type. This means that '0' and `'0' & `${number}` are not considered identical--even though they display as the same type!
Code
varx: '0';varx: '0'& `${number}`;// Error: 'x' must be of type '"0"', but here has type '"0"'
Activity