aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t0710.scala
blob: d550d63f98079c4f34a2aa4d50d2fcbed55c45bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                    
object t0710 {
  def method: Unit = {
    sealed class Parent
    case object Child extends Parent
    val x: Parent = Child
    x match {
      case Child => ()
    }
  }
}