Skip to content

Regression for -Wunused:import in business4s/decisions4s #21420

@WojciechMazur

Description

@WojciechMazur

Compiler version

3.5.0 and later
Bisect points to 975df4a

Minimized code

//> using options -Wunused:imports -Werror
object decisions4s{
  trait HKD
  trait DecisionTable
}

object DiagnosticsExample {
  import decisions4s.HKD
  case class Input[F[_]]() extends HKD
  import decisions4s.*
  val decisionTable: DecisionTable = ??? // warn
}

Output

[warn] ./test.scala:8:22
[warn] unused import
[warn]   import decisions4s.HKD
[warn]                

Expectation

Should not report warnings if wildcard import is placed after usages of explicit import statement.

Metadata

Metadata

Labels

area:lintingLinting warnings enabled with -W or -Xlintitype:bugregressionThis worked in a previous version but doesn't anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions