Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codefix for assignment to const #28296

Closed
ghost opened this issue Nov 1, 2018 · 1 comment
Closed

Codefix for assignment to const #28296

ghost opened this issue Nov 1, 2018 · 1 comment
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Good First Issue Well scoped, documented and has the green light Help Wanted You can do this Suggestion An idea for TypeScript

Comments

@ghost
Copy link

ghost commented Nov 1, 2018

TypeScript Version: 3.2.0-dev.20181031

Code

const isMutable = false;
isMutable = true;

Expected behavior:

The error at isMutable = true; has a codefix to change const to let.

Actual behavior:

No codefix.

@ghost ghost added Suggestion An idea for TypeScript Help Wanted You can do this Good First Issue Well scoped, documented and has the green light Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Nov 1, 2018
@j-oliveras
Copy link
Contributor

Duplicate of #22473 (has a PR #27970).

@ghost ghost closed this as completed Nov 1, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Good First Issue Well scoped, documented and has the green light Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

1 participant