Repository navigation
Indexing/element access on super avoids instance property checks #55899
Copy link
Copy link
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesBehavior of various `class` constructs, e.g. mixins or base classesEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do thisRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
Activity
- addedBugA bug in TypeScriptA bug in TypeScript
on Sep 28, 2023 - addedHelp WantedYou can do thisYou can do thisEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".
on Sep 28, 2023 Andarist commented
on Sep 28, 2023 ContributorMore actionsI imagine that there are also other bugs here.
checkElementAccessExpressiondoesn't end up checking if it's accessing onsuperat any layer (from what I can see quickly) andcheckPropertyAccessibilityAtLocationcan produce 2 other diagnostics as well (within theisSuperbranch)- addedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on Sep 28, 2023 - addedRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
on Jul 26, 2024 - addedDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesBehavior of various `class` constructs, e.g. mixins or base classes
on Oct 16, 2025 - removedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on Aug 20, 2026
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesBehavior of various `class` constructs, e.g. mixins or base classesEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do thisRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Discovered in conversation at #55892 (comment)
Currently there is no error for this code; however, if you switched it to a property access, you'd get the error introduced at #54056.