summaryrefslogblamecommitdiff
path: root/test/files/neg/t425.check
blob: 77ea0c5a4b441737bcbd85ab7136068b996dd70e (plain) (tree)
1
2
3
4
                                                                                                                                                                                       


                                                           
t425.scala:3: error: case class B has case ancestor Temp.A, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes.
  case class B(override val x: Int, y: Double) extends A(x)
             ^
one error found