Skip to content

False positive "unused explicit parameter" warning when class has var parameter #16955

Closed
@SethTisue

Description

@SethTisue
//> using scala "3.nightly"
//> using option "-Wunused:all"

class S(var r: String)
[warn] ./S.scala:4:9: unused explicit parameter
[warn] class S(var r: String)
[warn]         ^

this is with the current nightly (Scala 3.3.1-RC1-bin-20230216-2507577-NIGHTLY). same with 3.3.0-RC3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:lintingLinting warnings enabled with -W or -Xlintitype:bugstat:needs triageEvery issue needs to have an "area" and "itype" label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions