← Back to index
|
Original Bugzilla link
Bug 14271 – DMD 2.067-b4: strange behaviour of new package syntax
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2015-03-10T19:55:00Z
Last change time
2015-03-11T08:04:43Z
Assigned to
nobody
Creator
rswhite4
Comments
Comment #0
by rswhite4 — 2015-03-10T19:55:27Z
Code: ---- module A.B.Foo; import core.stdc.stdio : printf; struct Foo { package(A) void foo() { printf("Hallo\n"); } } package(A) void bar() { printf("Hallo\n"); } ---- and ---- module A.C.Bar; import A.B.Foo; void main() { Foo f; f.foo(); bar(); } ---- The call to bar works, but the call to foo returns the following error message: Error: struct A.B.Foo.Foo member foo is not accessible
Comment #1
by k.hara.pg — 2015-03-11T08:04:43Z
*** This issue has been marked as a duplicate of issue 14275 ***