http://d.puremagic.com/issues/show_bug.cgi?id=10421
Summary: 'package' access should work with package module
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2013-06-20 01:29:46 PDT ---
'package' symbols declared in package.d should be accessible from its
sub-modules.
Source code:
--- test.d
module test;
import pkg;
void main() { test(); }
--- pkg\package.d
module pkg;
public import pkg.bbb;
package void foo() {}
--- pkg\bbb.d
module pkg.bbb;
import pkg;
void test() { foo(); } // L3
Error message:
pkg\bbb.d(3): Error: function pkg.foo is not accessible from module bbb
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------