Template literal type reduction is inconsistent (regression in 5.5-beta) #58687
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
π Search Terms
Template literal type reduction
π Version & Regression Information
This changed in 5.5-beta (as reported in #58685).
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.5.0-beta&ssl=7&ssc=1&pln=1&pc=1#code/MYewdgzgLgBApmArgWxgURgbxgQxgXhgCIciAaGAIwOMqJgF8BuAKBagE8AHOGAZSgAnAJZgA5sIBmHADwAVeAA8oCACYQY0EeIB8NAAYASTHIb7WLADZxYALwCMALhhHMaMzRJEmMX398A9AEwAPIA1lY2MLYATM4C2hLSMmh6hF4+MEHogoIgggCELEA
π» Code
π Actual behavior
Error as indicated.
π Expected behavior
No error.
Additional information about the issue
This is a regression from 5.4.5. Error is caused by reduction introduced in #55371.
The text was updated successfully, but these errors were encountered: