microsoft / microsoft/TypeScript
TS18030: An optional chain cannot contain private identifiers
Open
@armanio123 is already working on this.
Since Feb 10, 2021.
Bug
Domain: classes
Rescheduled
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
Bug Report
🔎 Search Terms
TS18030
🕗 Version & Regression Information
v4.1.3
- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
Playground link with relevant code
💻 Code
class A {
#p = 1;
m (a? :A) {
return a?.#p;
}
}
🙁 Actual behavior
TS18030
🙂 Expected behavior
no error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.