What does "=>" mean in the example below?
trait MyService[E <: Entity[ID]] extends Management {
this: Repository[E] =>
// some code
}
What does "=>" mean in the example below?
trait MyService[E <: Entity[ID]] extends Management {
this: Repository[E] =>
// some code
}
In this example it means that this
has to be of the type Repository[E]
. That means that the trait MyService
can only be mixed into classes extending Repository[E]
.