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
classAobjectA {
defunapply(a: A):Some[A] =Some(a) // Change return type to Option[A] and the warning is gone
}
objectTest {
for (A(a) <-List(newA)) yield a // spurious dead code warning.
}
// List(new A()).withFilter(((check$ifrefutable$2) => check$ifrefutable$2: @scala.unchecked match {// case A((a @ _)) => true// case _ => false // this is dead code, but it's compiler generated.// }))
I'm pretty sure the regression is explained by the combination of:
I'm pretty sure the regression is explained by the combination of:
scala/scala@cbd02059
and
scala/scala@dfbaaa17
The text was updated successfully, but these errors were encountered: