-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
+= doesn't count a private member as being used #51371
Comments
Using the addition assignment operator does not count as reading a property. This is working as intended. Once you actually use There's a duplicate somewhere, didn't find it so far. edit: Found it. #42422 (comment) |
@MartinJohns |
I don't know what you mean by that question. When you read a variable, it's used. Just assigning something to it using |
The only thing "reading" from the variable |
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
🙁 Actual behavior
TS didn't recognize
+=
,if I useprivate
in the constructortsc version:4.8.4
💻 Code
demo.ts
And I split
+=
it is useful.tsconfig.json
The text was updated successfully, but these errors were encountered: