Skip to content

Assertion failed when modifying a variable from within init #1186

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

Closed
pitust opened this issue Mar 25, 2020 · 3 comments · Fixed by #1321
Closed

Assertion failed when modifying a variable from within init #1186

pitust opened this issue Mar 25, 2020 · 3 comments · Fixed by #1321
Labels

Comments

@pitust
Copy link

pitust commented Mar 25, 2020

Here is a sample:

let a = (a = 4, 3);
@pitust
Copy link
Author

pitust commented Mar 27, 2020

#1190 doesn't fix this. This still is valid JS:

var a = (a = 4, 3);

@MaxGraey
Copy link
Member

MaxGraey commented Mar 27, 2020

@pitust
Copy link
Author

pitust commented Mar 28, 2020

Oh, i didn't know that. I don't do a lot of typescript normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants