You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nowarn("cat=other-match-analysis")
valSeq(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] ^
The text was updated successfully, but these errors were encountered:
//> using options -Xlint
import annotation._
class C {
val Seq(x, y) = Seq(1, 2)
val Seq(a, b) = Seq(1, 2): @nowarn("cat=other-match-analysis")
def f(): Unit = {
val Seq(a, b) = Seq(1, 2): @nowarn("cat=other-match-analysis")
()
}
}
Uh oh!
There was an error while loading. Please reload this page.
Reproduction steps
Scala version: 2.13.16
Problem
With
-Xfatal-warnings
this fails.The text was updated successfully, but these errors were encountered: