Skip to content

Cannot suppress warning on destructuring assignment #13104

Closed as not planned
Closed as not planned
@mwisnicki

Description

@mwisnicki

Reproduction steps

Scala version: 2.13.16

@nowarn("cat=other-match-analysis")
val Seq(a, b) = Seq(1,2)

Problem

With -Xfatal-warnings this fails.

match may not be exhaustive.
[error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=other-match-analysis, site=Example
[error]       val Seq(a, b) = Seq(1,2)
[error]                          ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions