Skip to content

TS18030: An optional chain cannot contain private identifiers #42734

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

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions