With the following separate modules defined:
-----------------
module pkg.a;
-----------------
module pkg.b;
import pkg.a;
-----------------
module test;
import pkg.b;
// pkg.a is now incorrectly usable, without being imported
-----------------
If we remove the import of pkg.a in pkg.b, then module test suddenly does need to import pkg.a.
Whether or not 'pkg.b' imports 'pkg.a' is an implementation detail of 'pkg.b', so should not affect module 'test's accessibility of 'pkg.a'.
Comment #1 by robert.schadek — 2024-12-13T19:16:12Z