lean4-htt/tests/lean/interactive/completionDanglingDot.lean
Marc Huisinga b7667c1604
fix: don't issue atomic id completions when there is a dangling dot (#5837)
This PR fixes an old auto-completion bug where `x.` would issue
nonsensical completions when `x.` could not be elaborated as a dot
completion.
2024-11-19 12:23:41 +00:00

12 lines
390 B
Text

-- Regression test for a bug where the dangling dot was not accounted for in some
-- atomic completions, which lead to invalid completions after a dangling dot
def foo : Unit :=
x. -- No completions expected
--^ textDocument/completion
def bar : Array Nat := Id.run do
let mut x := sorry
let foo := x. -- No completions expected
--^ textDocument/completion
sorry