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



                                                                                                                                                                                                      
t0816.scala:5: error: case class `class Ctest' has case ancestor `class Btest'. 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