lean4-htt/tests/lean/run/ns.lean
2017-03-09 18:41:19 -08:00

18 lines
286 B
Text

prelude
constant nat : Type.{1}
constant f : nat → nat
namespace foo
constant int : Type.{1}
constant f : int → int
constant a : nat
constant i : int
#check _root_.f a
#check f i
end foo
open foo
constants a : nat
constants i : int
#check f foo.a
#check f foo.i