test: _root_
cc @Kha
This commit is contained in:
parent
2ea9d894e7
commit
a37e24af4a
1 changed files with 17 additions and 0 deletions
17
tests/lean/run/root.lean
Normal file
17
tests/lean/run/root.lean
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
def x := 10
|
||||
|
||||
|
||||
namespace Foo
|
||||
|
||||
def x := true
|
||||
|
||||
#check x
|
||||
#check _root_.x
|
||||
|
||||
theorem ex1 : x = true := rfl
|
||||
theorem ex2 : _root_.x = 10 := rfl
|
||||
|
||||
end Foo
|
||||
|
||||
theorem ex3 : x = 10 := rfl
|
||||
theorem ex4 : _root_.x = 10 := rfl
|
||||
Loading…
Add table
Reference in a new issue