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.