Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mhegazy opened this issue Feb 12, 2016 · 1 comment · Fixed by #7123
Closed

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

mhegazy opened this issue Feb 12, 2016 · 1 comment · Fixed by #7123
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Feb 12, 2016

class B {
    private x;

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

            }
        }
    }
}
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Feb 12, 2016
@mhegazy mhegazy added the Help Wanted You can do this label Feb 24, 2016
@mhegazy mhegazy added this to the Community milestone Feb 24, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.0, Community Mar 24, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 24, 2016
@mhegazy
Copy link
Contributor Author

mhegazy commented Mar 24, 2016

thanks @AbubakerB!

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants