www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21726] New: Wrong comparison in package(...) visibilities

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

          Issue ID: 21726
           Summary: Wrong comparison in package(...) visibilities
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla bernis-buecher.de

Compare

```
package(std.format):

package(std) someSymbol;
```

with

```
private:

public someSymbol;
```

In second case `someSymbol` is `public`, while in first case `someSymbol` is
`package(std.format)`. IMHO it should be `package(std)`.

--
Mar 17