Skip to content
New issue

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

unused variable linter sometimes warns on _, even though _x suppresses the linter #5259

Closed
kim-em opened this issue Sep 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kim-em
Copy link
Collaborator

kim-em commented Sep 5, 2024

Steps to Reproduce

open List

example [Inhabited α] : ∀ {l : List α}, head? l = some a → head! l = a
  | _ :: _, rfl => rfl
--  ^--- unused variable `a`

The linter does not complain on

open List

example [Inhabited α] : ∀ {l : List α}, head? l = some a → head! l = a
  | _a :: _, rfl => rfl

Versions

nightly-2024-09-04

@kim-em kim-em added the bug Something isn't working label Sep 5, 2024
@Kha
Copy link
Member

Kha commented Sep 12, 2024

Looks like a duplicate of #2830

@Kha Kha closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants