" mean in Scala? What does "=>" mean in the example below? trait MyService[E <: Entity[ID]] extends Management { this: Repositor...">

What does "=>" mean in Scala?

What does "=>" mean in the example below?

trait MyService[E <: Entity[ID]] extends Management {
    this: Repository[E] =>
    // some code
}
+4
source share
1 answer

In this example, this means it thismust be of type Repository[E]. This means that the attribute MyServicecan only be mixed with extension classes Repository[E].

+8
source

All Articles