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
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
}
The text was updated successfully, but these errors were encountered:
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):The text was updated successfully, but these errors were encountered: