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]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With