This kind of pattern has to be reduced to a constructor, and the `PatternWithRef` information was being lost in the process.
12 lines
207 B
Text
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
|