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
{{ message }}
Repository navigation
Unreachable code check in partial functions needs improvement #6902
Partial functions don't appear to be checked for unreachable code to the same extent as match expressions (the trivial case with a variable pattern is checked properly):
Some(1) match {
caseSome(a) =>2caseSome(b) =>3// warning: "unreachable code"
}
Some(Some(1)) collect {
caseSome(a) =>2caseSome(b) =>3// no warning
}
Activity
scabug commentedon Jan 2, 2013
Imported From: https://issues.scala-lang.org/browse/SI-6902?orig=1
Reporter: Rob Norris (rnorris)
Affected Versions: 2.10.0-RC5
scabug commentedon Jan 19, 2013
@retronym said:
scala/scala#1928