1 2 3 4 5 6 7 8 9 10 11 12 13
object A { def unapply(n: Int): Option[Int] = Some(n) def run = (0: Short) match { case A(_) => case _ => } } object Test extends App { A.run }