Closed
Description
Bug Report
π Search Terms
ts4094 parent
ts4094 extends
π Version & Regression Information
4.6.0-dev.20211218
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
β― Playground Link
[Playground link with relevant code]
- The playground doesn't show this error. it needs
"declaration": true
π» Code
class Foo {
protected a = 0;
}
const a = new class extends Foo {};
π 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.
Metadata
Metadata
Assignees
Labels
No labels