[Issue 10421] New: 'package' access should work with package module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 20 01:29:47 PDT 2013
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: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list