[Issue 17434] New: [REG: 2.073] import lookup ignores public import.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 25 06:12:13 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17434

          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 at puremagic.com
          Reporter: mike at 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.

--


More information about the Digitalmars-d-bugs mailing list