We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
declaration: true
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
ts4094 parent ts4094 extends
4.6.0-dev.20211218
[Playground link with relevant code]
"declaration": true
class Foo { protected a = 0; } const a = new class extends Foo {};
ts4094, Property 'a' of exported class expression may not be private or protected.ts(4094)
no error. 'a' can be accessed by the other child classes.
The text was updated successfully, but these errors were encountered:
The playground doesn't show this error. it needs "declaration": true
It does, when you add // @declaration: true.
// @declaration: true
Sorry, something went wrong.
I don't see any difference to #17293.
I believe this could be fixed if #41587 were implemented. Right now it looks like a design limitation, as explained in #17293.
I felt it little different but it seems almost same.
No branches or pull requests
Bug Report
declaration: true
Β #17293π Search Terms
ts4094 parent
ts4094 extends
π Version & Regression Information
4.6.0-dev.20211218
β― Playground Link
[Playground link with relevant code]
"declaration": true
π» Code
π Actual behavior
ts4094, Property 'a' of exported class expression may not be private or protected.ts(4094)
π Expected behavior
no error.
'a' can be accessed by the other child classes.
The text was updated successfully, but these errors were encountered: