1

Closed

Accessibility modifiers on static members

description

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
Closed Jan 30, 2013 at 8:33 PM by paulb
Thank you for your suggestion, This is currently being tracked on the discussion forum.

http://typescript.codeplex.com/discussions/431293

comments

gangadhar531 wrote Jul 24, 2013 at 5:30 AM

The work item is closed because it is implemented or decided not to implement the access modifiers on static members.

That would be very nice if we can have the Private Static functions just like in JavaScript.

RyanCavanaugh wrote Aug 13, 2013 at 5:51 PM

private static has been added