this fixes #4078. It is an alternative fix to the one in #4137, suggested by @kmill. Incidentially, it makes the unused variable linter better. My theory is that if we don’t reset the info when backtracking, the binder shows up more than once in the info tree, and then it is considered “used”, although there are just multiple binders.
17 lines
563 B
Text
17 lines
563 B
Text
def foo1 {β} (i : ∀ α, List α) : List β := i β
|
||
--^ textDocument/hover
|
||
|
||
def foo2 (i : ∀ α, List α) : List β := i β
|
||
--^ textDocument/hover
|
||
|
||
def foo3 (i : (α : _) → List α) : List β := i β
|
||
--^ textDocument/hover
|
||
|
||
def foo4 (i : (α : id _) → List α) : List β := i β
|
||
--^ textDocument/hover
|
||
|
||
def foo5 (i : (α : Type _) → List α) : List β := i β
|
||
--^ textDocument/hover
|
||
|
||
def foo6 (i : (α : Type 0) → List α) : List β := i β
|
||
--^ textDocument/hover
|