lean4-htt/tests/pkg/module/Module/ImportedAllImportedAll.lean
Sebastian Ullrich 49cff79712
fix: privacy checks and import all (#10550)
This PR ensures private declarations are accessible from the private
scope iff they are local or imported through an `import all` chain,
including for anonymous notation and structure instance notation.
2025-09-26 13:26:10 +00:00

12 lines
207 B
Text

module
prelude
import all Module.ImportedAll
/-! `import all` should chain with nested `import all`s. -/
#check priv
#check { x := 1 : StructWithPrivateField }
#check (⟨1⟩ : StructWithPrivateField)