lean4-htt/tests/pkg/module/Module/ImportedPrivateImported.lean
Sebastian Ullrich 8e6f2750da
fix: namespace used in private import and current module vanishes dowstream (#12840)
This PR fixes an issue where the use of private imports led to unknown
namespaces in downstream modules.

Fixes #12833
2026-03-20 13:27:26 +00:00

17 lines
336 B
Text

module
prelude
public import Module.PrivateImported
/-! `private import` should not be transitive. -/
/-- error: Unknown identifier `f` -/
#guard_msgs in
#check f
/-- info: 5 -/
#guard_msgs in
#eval publicDefOfPrivatelyInitialized
/-! #12833: namespaces privately imported but publicly used must be re-exported. -/
open Namespaced