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

False unused import with -Wunused:imports #19912

Open
joan38 opened this issue Mar 10, 2024 · 1 comment
Open

False unused import with -Wunused:imports #19912

joan38 opened this issue Mar 10, 2024 · 1 comment
Labels
area:linting Linting warnings enabled with -W or -Xlint itype:bug

Comments

@joan38
Copy link
Contributor

joan38 commented Mar 10, 2024

import cats.derived.auto.semigroup.given is reported used but if removed it was actually used.
import cats.derived.auto.semigroup.given Semigroup[?] same issue.
import cats.derived.auto.semigroup.given_Semigroup_A works fine.

Identified in kittens 3.3.0 but works with kittens 3.2.0 typelevel/kittens#655
I believe this is related to the transparent implementation for givens.

Compiler version

Reproducable in 3.3.3 and 3.4.0

Minimized code

https://scastie.scala-lang.org/Po0uhQLgSjyzEdnffZLi1g

@joan38 joan38 added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 10, 2024
@Gedochao Gedochao added area:linting Linting warnings enabled with -W or -Xlint and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 12, 2024
@Gedochao
Copy link
Contributor

Looks similar to #18564 and #19657
@szymon-rd is this a duplicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:linting Linting warnings enabled with -W or -Xlint itype:bug
Projects
None yet
Development

No branches or pull requests

2 participants