blob: 77ea0c5a4b441737bcbd85ab7136068b996dd70e (
plain) (
tree)
|
|
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
|