www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10421] New: 'package' access should work with package module

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg 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: -------
Jun 20 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10421


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-06-20 02:22:41 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2231

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10421



--- Comment #2 from github-bugzilla puremagic.com 2013-06-20 04:03:36 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b6c67b77e8ba90d90f971f5de30fc8bbc912b997
fix Issue 10421 - 'package' access should work with package module

https://github.com/D-Programming-Language/dmd/commit/d3e0e0da47875d1b5f69b2744da780bea06232df
Merge pull request #2231 from 9rnsr/fix10421

Issue 10421 - 'package' access should work with package module

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 20 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10421


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 20 2013