[Issue 21726] New: Wrong comparison in package(...) visibilities

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 17 16:17:16 UTC 2021


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 at puremagic.com
          Reporter: bugzilla at 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)`.

--


More information about the Digitalmars-d-bugs mailing list