summaryrefslogtreecommitdiff
path: root/test/files/neg/t3015.scala
blob: adfa15b388baea03e9e80c772adfe87c0548e87b (plain) (blame)
1
2
3
4
5
6
7
8
class UnApp[P] {
  def unapply(a: P): Option[P] = Some(a)
}

object Test extends App {
  val b: UnApp[_] = new UnApp[String]
  val b(foo) = "foo"
}