[Issue 15283] New: `protected` doesn't work for static members

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 4 03:03:38 PST 2015


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 at puremagic.com
          Reporter: public at 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

--


More information about the Digitalmars-d-bugs mailing list