Skip to content

False positive unused import #24646

@drewfeelsblue

Description

@drewfeelsblue

Minimized code

//> using scala 3.8.0-RC1
//> using options -Wunused:all

import Test.OnlyFirst

enum Test:
  case First extends Test with OnlyFirst
  case Second extends Test

object Test:
  sealed trait OnlyFirst

@main def hello() = ()

Output

[warn] ./enum.scala:4:13
[warn] unused import
[warn] import Test.OnlyFirst
[warn]

Expectation

no warnings are expected

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions