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

Protected accessibility check does not state that instance members are accessible through derived classes #729

Closed
mhegazy opened this issue Sep 23, 2014 · 0 comments
Assignees
Labels
Spec Issues related to the TypeScript language specification

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Sep 23, 2014

In section 8.2.2,

Protected property members can be accessed only within their declaring class and classes derived from their declaring class, and a protected instance property member must be accessed through an instance of the enclosing class

it does not mention accessing through a sub class of the enclosing class. the explanation paragraph later on states it, but for the sake of completeness we should add it, to be

Protected property members can be accessed only within their declaring class and classes derived from their declaring class, and a protected instance property member must be accessed through an instance of the enclosing class or a sub class of the enclosing class.

Related to #700

@mhegazy mhegazy added Suggestion An idea for TypeScript Spec Issues related to the TypeScript language specification labels Sep 23, 2014
@sophiajt sophiajt changed the title Protected accesibility check does not state that instance members are accisble through derived classes Protected accesibility check does not state that instance members are accessible through derived classes Sep 23, 2014
@sophiajt sophiajt changed the title Protected accesibility check does not state that instance members are accessible through derived classes Protected accessibility check does not state that instance members are accessible through derived classes Sep 23, 2014
@mhegazy mhegazy removed the Suggestion An idea for TypeScript label Dec 8, 2015
@mhegazy mhegazy added this to the TypeScript 1.8 milestone Dec 8, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Spec Issues related to the TypeScript language specification
Projects
None yet
Development

No branches or pull requests

2 participants