lean4-htt/src/lake/tests/module/Test/ModuleAllTransPrivateImport.lean
Mac Malone 4875c6447f
fix: lake: import all transitivity & related bugs (#9525)
This PR fixes Lake's handling of a module system `import all`.
Previously, Lake treated `import all` the same a non-module `import`,
importing all private data in the transitive import tree. Lake now
distinguishes the two, with `import all M` just importing the private
data of `M`. The direct private imports of `M` are followed, but they
are not promoted.

This also fixes some other Lake bugs with module system imports that
were discovered in the process.
2025-07-25 05:56:38 +00:00

3 lines
44 B
Text

module
import all Test.ModulePrivateImport