blob: d707196423479f8b0371819891b7c0b4d851627e (
plain) (
tree)
|
|
object Test {
object NF {
def unapply(t: Throwable): Option[Throwable] = None
}
val x = (try { None } catch { case NF(ex) => None }) getOrElse 0
// Was emitting a spurious warning post typer:
// "This catches all Throwables. If this is really intended, use `case ex6 : Throwable` to clear this warning."
}
|