You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried adding the new unused flag (from #16157) to my work codebase and was surprised that it warned about unused import when used with the cats libraries IO type. A minimal reproducer independent of cats is below.
Compiler version
With nightly: 3.3.0-RC1-bin-20230112-be10bc6-NIGHTLY
Minimized code
//>usingscala"3.3.0-RC1-bin-20230112-be10bc6-NIGHTLY"//>usingoption"-Wunused:all"objectmyPackage:caseclassHKT[A](a: A)
traitThing[F[_]]
importmyPackage.HKTvalx=newThing[HKT]{}
I tried adding the new unused flag (from #16157) to my work codebase and was surprised that it warned about unused import when used with the
cats
libraries IO type. A minimal reproducer independent of cats is below.Compiler version
With nightly:
3.3.0-RC1-bin-20230112-be10bc6-NIGHTLY
Minimized code
Output
Expectation
HKT is used as the instance of F in Thing, and hence should not be reported as unused.
The text was updated successfully, but these errors were encountered: