lean2/tests/lean/run/ns.lean
2014-10-02 17:55:34 -07:00

17 lines
266 B
Text

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 a
check f i