aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t6994.scala
blob: d707196423479f8b0371819891b7c0b4d851627e (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                 
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."
}