summaryrefslogtreecommitdiff
path: root/test/files/run/t4897.scala
blob: a2ec3de37f8685e4d1eb1575b18bbc6522b829be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class CSuper {
  object A
}
class C extends CSuper {
  def f = (A: AnyRef) match { case _: A.type  => "joepie" }
}

object Test extends C with App {
  println(f)
}