chore: add completion test for the group issue

This commit is contained in:
Leonardo de Moura 2021-04-07 22:29:19 -07:00
parent 95419cc194
commit 2da8e5afa1
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,11 @@
structure C where
f1 : Nat
f2 : Bool
b1 : String
def f (c : C) : IO Unit :=
visit c
where
visit (c : C) : IO Unit :=
let x := c.
--^ textDocument/completion

View file

@ -0,0 +1,8 @@
{"textDocument": {"uri": "file://completion5.lean"},
"position": {"line": 9, "character": 15}}
{"items":
[{"label": "mk", "detail": "Nat → Bool → String → C"},
{"label": "b1", "detail": "C → String"},
{"label": "f1", "detail": "C → Nat"},
{"label": "f2", "detail": "C → Bool"}],
"isIncomplete": true}