lean2/tests/lean/using.lean
Leonardo de Moura 52e11dbbee test(tests/lean): 'using' command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-09 12:21:14 -08:00

17 lines
178 B
Text

scope
using Nat
print add 0 1
check add_assoc
end
print add 0 1
namespace foo
using Nat
print add 0 1
end
using Nat::add plus
check plus_assoc
print add 0 1