4

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

trait MyService[E <: Entity[ID]] extends Management { this: Repository[E] => // some code } 
1
  • To the closevoters: this is neither too broad nor a duplicate (of what you linked). This should stay open unless there's a more specific duplicate Commented Jun 4, 2015 at 13:53

1 Answer 1

8

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].

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.