We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please put an X between the brackets as you perform the following steps:
The linter "unused variables" has a false positive, which, additionally, is reported at the wrong location.
There is no particular context for this issue, here is the Zulip thread where it was reported.
inductive Foo {α : Type} : α → Type where | bar (x : α) : Foo x def Foo.baz {α : Type} (y : α) : Foo y → Foo y | bar _ => bar _
Expected behavior: Nothing is reported in Foo.baz, the both variables bound α and y are used.
Foo.baz
α
y
Actual behavior: The linter triggers, are reports unused variable `y` , with the reported location being the catch all pattern in the baz branch.
unused variable `y`
baz
This has been checked with Lean nightly on the online version of Lean. On my computer, I'm using Lean 4.10.0-rc1, under NixOS unstable.
This is a very minor issue.
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
duplicate of #2830
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
The linter "unused variables" has a false positive, which, additionally, is reported at the wrong location.
Context
There is no particular context for this issue, here is the Zulip thread where it was reported.
Steps to Reproduce
Expected behavior: Nothing is reported in
Foo.baz
, the both variables boundα
andy
are used.Actual behavior: The linter triggers, are reports
unused variable `y`
, with the reported location being the catch all pattern in thebaz
branch.Versions
This has been checked with Lean nightly on the online version of Lean. On my computer, I'm using Lean 4.10.0-rc1, under NixOS unstable.
Impact
This is a very minor issue.
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: