summaryrefslogblamecommitdiff
path: root/test/files/neg/t0816.check
blob: 48f37c141492a3924cd4815815cbcf4d25304133 (plain) (tree)
1
2
3
4
                                                                                                                                                                                           


                                                                     
t0816.scala:5: error: case class Ctest has case ancestor Btest, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes.
case class Ctest(override val data: String) extends Btest(data, true)
           ^
one error found