aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t4897.scala
blob: f65c2745efaafe2bb77323ce9d0838db649487f2 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                           
 
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)
}