Is there a nicer way of doing this?
scala> case class A(x : Int)
defined class A
scala> case class B(override val x : Int, y : Int) extends A(x)
defined class B
I'm extending A with B and adding an extra member variable. It would be nice not to have to write override val
before the x.