summaryrefslogtreecommitdiff
path: root/test/files/pos/overloaded-unapply.scala
blob: 4105a25f1011bf8bb399bece8d14a3fad15b6c7d (plain) (blame)
1
2
3
4
5
6
7
8
trait Baz {
  type Type >: Null

  case class HoleType(a: String, b: String, c: String)
  object HoleType { def unapply(tpe: Type): Option[HoleType] = ??? }

  (null: Type) match { case HoleType(holeTpe) => holeTpe }
}