lean4-htt/tests/lean/interactive/completion6.lean

23 lines
335 B
Text

structure C where
f1 : Nat
f2 : Bool
b1 : String
structure D extends C where
f3 : Bool
def f (c : D) : IO Unit :=
visit c
where
visit (c : D) : IO Unit :=
let x := c.
--^ textDocument/completion
abbrev E := D
def E.doubleF1 (e : E) :=
e.f1 + e.f1
def g (e : E) :=
e.
--^ textDocument/completion