23 lines
516 B
Text
23 lines
516 B
Text
module
|
|
|
|
import Module.Basic
|
|
|
|
/-! `private import` should allow only private access to imported decls. -/
|
|
|
|
public def g := f
|
|
|
|
/--
|
|
error: Unknown identifier `f`
|
|
|
|
Note: A private declaration `f` (from `Module.Basic`) exists but is not accessible in the current context.
|
|
-/
|
|
#guard_msgs in
|
|
public theorem t2 : f = 1 := sorry
|
|
|
|
/--
|
|
error: Unknown identifier `f`
|
|
|
|
Note: A private declaration `f` (from `Module.Basic`) exists but is not accessible in the current context.
|
|
-/
|
|
#guard_msgs in
|
|
@[expose] public def h : True := f
|