summaryrefslogtreecommitdiff
path: root/test/files/run/t7868.scala
blob: 1f938adf318d6b86f32e452bfff560c5becd68aa (plain) (blame)
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
}