Change to template literals is breaking and undocumented #46844
Labels
Breaking Change
Would introduce errors in existing code
Docs
The issue relates to how you learn TypeScript
Milestone
Bug Report
π Search Terms
Template literals, moment
π Version & Regression Information
This began happening with the release of #45304 when targeting ES5.
β― Playground Link
Playground link
π» Code
π Actual behavior
In 4.5.2+, this compiles to
"Moment: ".concat(moment())
which evaluates to"Moment: Wed Nov 17..."
π Expected behavior
In previous versions of Typescript, this compiled to
"Moment: " + moment()
which resolves to"Moment: 1637....
.This change is breaking and was not documented in the release notes for 4.5.
The text was updated successfully, but these errors were encountered: