Created attachment 1647 [details] 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.
--------- imp.d ------------ module imp; private import test.test1; public import test.test2; --------- main.d ----------- module main; import imp; void main() { test.test2.testing(); } --------- test/test1.d ------- module test.test1; --------- test/test2.d ------- module test.test2; void testing() { return; }
@RazvanN7 updated dlang/dmd pull request #13934 "Fix Issue 17434 - [REG: 2.073] import lookup ignores public import." fixing this issue: - Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. https://github.com/dlang/dmd/pull/13934
dlang/dmd pull request #13934 "Fix Issue 17434 - [REG: 2.073] import lookup ignores public import." was merged into stable: - b1078a9d28538c9b65933c9115141ee5a893536c by RazvanN7: Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. https://github.com/dlang/dmd/pull/13934
dlang/dmd pull request #13962 "merge stable" was merged into master: - 0f4d152e06630418a315dbb62e0824dd6eb1972d by Razvan Nitu: Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. (#13934) Fix Issue 17434 - [REG: 2.073] import lookup ignores public import. Signed-off-by: Dennis <dkorpel@users.noreply.github.com> Merged-on-behalf-of: Dennis <dkorpel@users.noreply.github.com> https://github.com/dlang/dmd/pull/13962