lean2/tests/lean/run/root.lean
Leonardo de Moura da4c1922e3 feat(frontends/lean): add '_root_' prefix for referencing names in the root namespace
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-07 19:15:46 -07:00

20 lines
249 B
Text

import standard
using num
variable foo : Bool
namespace N1
variable foo : Bool
check N1.foo
check _root_.foo
namespace N2
variable foo : Bool
check N1.foo
check N1.N2.foo
print raw foo
print raw _root_.foo
end
end