test(lean/run): add overload test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
48c58af9b5
commit
fad4780d72
1 changed files with 19 additions and 0 deletions
19
tests/lean/run/t5.lean
Normal file
19
tests/lean/run/t5.lean
Normal file
|
@ -0,0 +1,19 @@
|
|||
variable N : Type.{1}
|
||||
namespace foo
|
||||
variable N : Type.{2}
|
||||
namespace tst
|
||||
variable N : Type.{3}
|
||||
print raw N
|
||||
end
|
||||
end
|
||||
print raw N
|
||||
namespace foo
|
||||
print raw N
|
||||
namespace tst
|
||||
print raw N N -> N
|
||||
section
|
||||
variable N : Type.{4} -- Shadow previous ones.
|
||||
print raw N
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue