lean4-htt/tests/lean/run/ns.lean
2016-07-31 17:45:43 -07:00

18 lines
282 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