lean2/tests/lean/run/ns.lean
Leonardo de Moura e51c4ad2e9 feat(frontends/lean): rename 'using' command to 'open'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-03 16:00:38 -07:00

17 lines
266 B
Text

variable nat : Type.{1}
variable f : nat → nat
namespace foo
variable int : Type.{1}
variable f : int → int
variable a : nat
variable i : int
check _root_.f a
check f i
end foo
open foo
variables a : nat
variables i : int
check f a
check f i