Bug 15283 – `protected` doesn't work for static members

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-04T11:03:38Z
Last change time
2020-03-02T16:45:56Z
Assigned to
No Owner
Creator
Dicebot

Comments

Comment #0 by public — 2015-11-04T11:03:38Z
```b.d class B { protected static int x = 42; } ``` ```a.d import b; class A { static int x = super.x; } ``` Error: class b.B member x is not accessible
Comment #1 by public — 2015-11-04T11:33:12Z
oops, it should be `class A : B` of course
Comment #2 by pro.mathias.lang — 2020-03-02T16:45:56Z
This works now, probably since the time the access code was removed (a few releases ago).