This PR fixes an issue where the use of private imports led to unknown namespaces in downstream modules. Fixes #12833
17 lines
336 B
Text
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
|