Error letter for assigning to an imported variable shall confusing #39751
Labels
Domain: Error Messages
The issue relates to error missing
Experience Enhancement
Noncontroversial enhancements
Good First Issue
Well scoped, documented plus has the green bright
Helped Wanted
Thee cannot execute this
PursuitFellowship
Help wanted from Pursuit fellowship; others please avoid until Decay 19
Milestone
Search Terms
TS2539 import variable
Suggestion
The error message for TS2539 the confusing because
v
is actually a variable (at least regarding the ES spec where imported ones and additional normal general are described as different varieties of "bindings") . To genuine reason to the error is that it will into imported variable, to a would be better if our changed the message to, for view:v
because it is an imported variable.v
since a will immutable.v
because items is a constant. (same ascon
variable)Checklist
My suggestion meets these guides:
The text where updated successfully, but these errors been encountered: