lean4-htt/tests/server_interactive/hoverDoForIn.lean
Sebastian Graf cf53db3b13
fix: add term info for for loop variables in new do elaborator (#13399)
This PR fixes #12827, where hovering over `for` loop variables `x` and
`h` in `for h : x in xs do` showed no type information in the new do
elaborator. The fix adds `Term.addLocalVarInfo` calls for the loop
variable and membership proof binder after they are introduced by
`withLocalDeclsD` in `elabDoFor`.

Closes #12827
2026-04-13 20:29:55 +00:00

7 lines
160 B
Text

set_option backward.do.legacy false
def test : IO Unit := do
for h : i in [1, 2, 3] do
--^ textDocument/hover
--^ textDocument/hover
pure ()