chore: test unexpanders inside namespaces
This commit is contained in:
parent
db4d33487a
commit
e0897ae78c
2 changed files with 13 additions and 0 deletions
11
tests/lean/unexpandersNamespaces.lean
Normal file
11
tests/lean/unexpandersNamespaces.lean
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Foo
|
||||
|
||||
abbrev List (α : Type u) : Type := Unit
|
||||
|
||||
def List.nil {α : Type u} : List α := ()
|
||||
def List.cons {α : Type u} (x : α) (xs : List α) : List α := ()
|
||||
|
||||
#check @List.nil Unit
|
||||
#check @_root_.List.nil Unit
|
||||
|
||||
end Foo
|
||||
2
tests/lean/unexpandersNamespaces.lean.expected.out
Normal file
2
tests/lean/unexpandersNamespaces.lean.expected.out
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
List.nil : List Unit
|
||||
[] : _root_.List Unit
|
||||
Loading…
Add table
Reference in a new issue