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
classC {
defm(x: true) = x match {
casetrue=> println("the one true path")
}
}
14:53:27 $ scala exhaustive-literals.scala
exhaustive-literals.scala:2: warning: match may not be exhaustive.
It would fail on the following input: false
def m(x: true) = x match {
^
Scala 2.13.0
The text was updated successfully, but these errors were encountered:
Scala 2.13.0
The text was updated successfully, but these errors were encountered: