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
the following has an exhaustiveness warning in 2.10.1 but not in 2.10.0:
sealedtraitBoolobjectBool {
caseobjectFALSEextendsBoolcaseobjectTRUEextendsBooldefshow(b: Bool) = b match {
caseFALSE=>"1"caseTRUE=>"2"
}
}
but this is ok:
sealedtraitBoolcaseobjectFALSEextendsBoolcaseobjectTRUEextendsBoolobjectBool {
defshow(b: Bool) = b match {
caseFALSE=>"1"caseTRUE=>"2"
}
}
warning is:
[info] Compiling 2 Scala sources to /Volumes/src/test/target/scala-2.10/classes...
[warn] /Volumes/src/test/src/main/scala/Bool.scala:6: match may not be exhaustive.
[warn] It would fail on the following inputs: FALSE, TRUE
[warn] def show(b: Bool) = b match {
[warn] ^
[warn] one warning found
Note that if I change the inner case objects to case classes the warning remains.
The text was updated successfully, but these errors were encountered:
the following has an exhaustiveness warning in 2.10.1 but not in 2.10.0:
but this is ok:
warning is:
Note that if I change the inner case objects to case classes the warning remains.
The text was updated successfully, but these errors were encountered: