-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug
Milestone
Description
Compiler version
3.3.0-RC2
Minimized code
//> using scala "3.3.0-RC2"
//> using option "-Wunused:all"
enum ExampleEnum {
case Build(context: String)
case List
}
@main def demo = {
val x = ExampleEnum.List
println(x)
}
Output
Compiling project (Scala 3.3.0-RC2, JVM)
[warn] ./demo.scala:6:3: unused explicit parameter
[warn] case List
[warn] ^
Compiled project (Scala 3.3.0-RC2, JVM)
Expectation
No warning is reported
Metadata
Metadata
Assignees
Labels
SpreeSuitable for a future SpreeSuitable for a future Spreearea:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug