lean4-htt/tests/pkg/module/Module/ImportedImportedAll.lean
Sebastian Ullrich 01dbbeed99
feat: do not export def bodies by default (#8221)
This PR adjusts the experimental module system to not export the bodies
of `def`s unless opted out by the new attribute `@[expose]` on the `def`
or on a surrounding `section`.

---------

Co-authored-by: Markus Himmel <markus@lean-fro.org>
2025-05-15 12:16:54 +00:00

13 lines
176 B
Text

module
prelude
import Module.ImportedAll
/-! `import all` should not transitively expose private info. -/
/--
info: def f : Nat :=
<not imported>
-/
#guard_msgs in
#print f