lean2/tests/lean/alias.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

24 lines
340 B
Text

import logic
namespace N1
variable num : Type.{1}
variable foo : num → num → num
end N1
namespace N2
variable val : Type.{1}
variable foo : val → val → val
end N2
open N2
open N1
variables a b : num
print raw foo a b
open N2
print raw foo a b
open N1
print raw foo a b
open N1
print raw foo a b
open N2
print raw foo a b