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
inductive Foo : (Nat → Nat) × Nat × Nat → Type | ctor (n : Nat) : Foo ⟨lctx, n, lctx n⟩ def bar (wft : Foo ⟨lctx, n, s⟩) : True := match wft with | .ctor _ => True.intro -- unused variable `n` [linter.unusedVariables] def bar' (wft : Foo ⟨lctx, n, s⟩) : True := match n, wft with | _, .ctor _ => True.intro -- unused variable `s` [linter.unusedVariables]
Lean (version 4.3.0-rc1, commit baa4b68, Release) Ubuntu 20.04.6 LTS (WSL)
The text was updated successfully, but these errors were encountered:
I think here's the same problem but a simpler example:
example : (x = y) → y = x | .refl _ => .refl _ --^ unused variable 'x'
Sorry, something went wrong.
_
_x
fix: inaccessible pattern vars reported as binders (#5337)
438061a
Fixes an unused variable false positive on some wildcard patterns Fixes #1633, fixes #2830
fix: inaccessible pattern vars reported as binders (leanprover#5337)
ab9233e
Fixes an unused variable false positive on some wildcard patterns Fixes leanprover#1633, fixes leanprover#2830
Successfully merging a pull request may close this issue.
Steps to Reproduce
Versions
Lean (version 4.3.0-rc1, commit baa4b68, Release)
Ubuntu 20.04.6 LTS (WSL)
The text was updated successfully, but these errors were encountered: