Zulip Chat Archive
Stream: lean4
Topic: Linter false positive
jthulhu (Jul 24 2024 at 12:10):
The following code
inductive Foo {α : Type} : α → Type where
| bar (x : α) : Foo x
def Foo.baz {α : Type} (x : α) : Foo x → Foo x
| bar _ => bar _
triggers a warning: usused variable `x`
, reported at the location of the wildcard pattern in the Foo.baz
definition. This is presumably not the intended behavior, as x
is used in the signature, and the lint is reported at the wrong place.
Kim Morrison (Jul 24 2024 at 23:43):
Could you please open an issue?
jthulhu (Jul 25 2024 at 08:57):
Done.
Last updated: May 02 2025 at 03:31 UTC