digitalmars.D.bugs - [Issue 20796] New: protection attribute package(x.y) does not bind
- d-bugmail puremagic.com (26/26) May 04 2020 https://issues.dlang.org/show_bug.cgi?id=20796
https://issues.dlang.org/show_bug.cgi?id=20796 Issue ID: 20796 Summary: protection attribute package(x.y) does not bind to one of ancestor packages of module x.y when declared in x/y/package.d Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: iamthewilsonator hotmail.com file x/y/package.d: module x.y; package(x.y) void foo(); results in x/y/package.d(2): Error: protection attribute package(x.y) does not bind to one of ancestor packages of module x.y which is patently false. In particular this makes it very annoying to convert a large module, say x.y, into a package and convert all private protection symbols to package(x.y) symbols when moving symbols from x.y to x.y.a. --
May 04 2020