This PR fixes an old auto-completion bug where `x.` would issue nonsensical completions when `x.` could not be elaborated as a dot completion.
12 lines
390 B
Text
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
|