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
Ack, this is probably my fault - as a follow up to the community PR, I updated it to use const, thinking it was more desirable - I didn't realize we relied on the ability to reassign the class declaration later on (even if we're reassigning it to itself in most cases). Regressed by #36907.
TypeScript Version: 3.9.0-dev.20200228
Search Terms:
Code
With
target = ES2017
,module = commonJS
Expected behavior:
In TS 3.8, this emits:
Actual behavior:
In TS 3.9, this emits:
Which is not valid since it tries to reassign a constant value:
Color = exports.Color
The text was updated successfully, but these errors were encountered: