False positive unused import on type used in macro type pattern #22981
Labels
area:linting
Linting warnings enabled with -W or -Xlint
itype:bug
regression
This worked in a previous version but doesn't anymore
Compiler version
3.5.2, 3.6.4 and latest nightly 3.7.1-RC1-bin-20250411-98c84c3-NIGHTLY
Minimized code
Output
Expectation
The import should not be reported unused since it's used in
applyImpl
.Note that the import is only reported unused when using a bounded type like
'[type d <: FiniteDuration; d]
-- it's not reported unused if I just do'[FiniteDuration]
.The text was updated successfully, but these errors were encountered: