In scala, we cannot extend object:
object
object X object Y extends X
gives an error error: not found: type X
error: not found: type X
I
You can convert parent into class + companion object, and then have child extend class E.g.
in Parent.scala
class Parent {} object Parent extends Parent {}
And then in Child.scala
object Child extends Parent {}
Yes, it's more a hack than a solution.