summaryrefslogtreecommitdiff
path: root/test/files/pos/t1107/O.scala
blob: ffc2f767a873a6b606b65086e0c7367ade58a50f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object O
{
  def d(t: Top) = t match {
    case s: Sub => true
    case _ => false
  }

  def main(args: Array[String]): Unit = {
    val c = new AnyRef with C

    c.bob.toString + c.bob2.toString
  }
}