lean4-htt/tests/lean/interactive/4078.lean
Joachim Breitner 82401938cf
fix: hovers on binders with metavariables (#4192)
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.
2024-05-21 10:34:58 +00:00

17 lines
563 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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