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>
13 lines
176 B
Text
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
|