lean4-htt/tests/lean/interactive/definition.lean
2025-04-11 11:16:16 +00:00

13 lines
225 B
Text

inductive Foo where
| foo
--^ waitForILeans
example : Foo :=
let c := Foo.foo
c
--^ textDocument/typeDefinition
def f (x : Nat) : Nat :=
match x with
| 0 => 1
| y + 1 => y
--^ textDocument/declaration