lean4-htt/tests/lean/interactive/definition.lean
Leonardo de Moura ed12b62e28 fix: InfoTree was missing information for (pseudo) match patterns such as x + 1.
This kind of pattern has to be reduced to a constructor, and the
`PatternWithRef` information was being lost in the process.
2022-04-23 12:08:59 -07:00

12 lines
207 B
Text

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