www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15283] New: `protected` doesn't work for static members

https://issues.dlang.org/show_bug.cgi?id=15283

          Issue ID: 15283
           Summary: `protected` doesn't work for static members
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: public dicebot.lv

```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

--
Nov 04 2015