Self type annotations allow you to express cyclic dependencies. For instance:
trait A extends B
trait B { self: A => }
This is not possible with simple inheritance.
Self type annotations allow you to express cyclic dependencies. For instance:
trait A extends B
trait B { self: A => }
This is not possible with simple inheritance.