We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all, I've tested the following code:
class TestPrivate { public publicField: number; private privateField: number; constructor(pr: number, pub: number) { this.privateField = pr; this.publicField = pub; } } const obj1 = new TestPrivate(123, 789); const temp = { fakeWrapper: obj1 }; const { fakeWrapper: { privateField } } = temp; console.log(privateField);
And I see in console 123 output. It seems that we have a violation of encapsulation here.
The text was updated successfully, but these errors were encountered:
Duplicate of #26760
Sorry, something went wrong.
Fixed by #28562.
No branches or pull requests
Hi all,
I've tested the following code:
And I see in console 123 output. It seems that we have a violation of encapsulation here.
The text was updated successfully, but these errors were encountered: