lean2/tests/lean/run/ns.lean

19 lines
274 B
Text
Raw Normal View History

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