www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17434] New: [REG: 2.073] import lookup ignores public import.


          Issue ID: 17434
           Summary: [REG: 2.073] import lookup ignores public import.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: mike mikewey.eu

Created attachment 1647
  --> https://issues.dlang.org/attachment.cgi?id=1647&action=edit
Test case

Since dmd version 2.073 the attached test case generates a deprecation warning:

 $dmd *.d test/*.d
 main.d(7): Deprecation: imp.test is not visible from module main
Swapping the imports in imp.d so that the public import is listed first fixes the warning. This seems related to #15900. --
May 25 2017