Skip to content

Spurious "private default argument... is never used" warning with -Xlint #7707

@scabug

Description

@scabug
object O { O() }
case class O private (x: Int = 3)

gives (in 2.11.0-M4)

warning: private default argument in object O is never used
       case class O private (x: Int = 3)
                             ^

but it is; it's used from the companion object.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions