[Issue 20796] New: protection attribute package(x.y) does not bind to one of ancestor packages of module x.y when declared in x/y/package.d
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 5 03:26:38 UTC 2020
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 at puremagic.com
Reporter: iamthewilsonator at 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.
--
More information about the Digitalmars-d-bugs
mailing list