summaryrefslogtreecommitdiff
path: root/test/files/pos/t0710.scala
blob: fb440bc79640487723826fa595a7609d8c6d06a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object t0710 {
  def method {
    sealed class Parent
    case object Child extends Parent
    val x: Parent = Child
    x match {
      case Child => ()
    }
  }
}