Accessibility modifiers on static members

Topics: General, Language Specification
Jan 29, 2013 at 3:48 PM

Is there a reason accessibility modifiers on static members are explicitly not allowed? The two concepts are completely orthogonal, it makes no sense that something should have to be public by virtue of it being static.

Obviously, this would likely be a compile-time only feature, as private is currently.

http://stackoverflow.com/questions/12827544/private-static-properties-in-typescript


Coordinator
Jan 29, 2013 at 5:09 PM

Interesting - I'm not sure exactly why the spec disallows this.  I'll copy it over to a feature request.

Coordinator
Jan 29, 2013 at 5:09 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.