summaryrefslogtreecommitdiff
path: root/test/pending/pos/t5503.scala
blob: 8a1925df1f229d3a65943ef9ac4f891e0d96114d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
trait A {
  type Type
  type MethodType <: Type

  val MethodType: MethodTypeExtractor = null

  abstract class MethodTypeExtractor {
    def unapply(tpe: MethodType): Option[(Any, Any)]
  }
}

object Test {
  val a: A = null

  def foo(tpe: a.Type) = tpe match {
    case a.MethodType(_, _) =>
  }
}