Skip to content

Private/Protected class members not accessible in nested classes #7058

Closed
@mhegazy

Description

@mhegazy
class B {
    private x;

    method() {
        class C {
            method() {
                new B().x; // x is not accessible here

            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions