class V extends Ordered[V] class S extends V trait P extends Ordered[P]
I would like class S
to mix in trait P
. However I get a divergent implicits error when using <
relop.
Is there a way of saying, when you order S
, take V
’s ordering only and ignore P
’s, perhaps via an implicit, without having to reimplement the ordering logic. What would the syntax for this be?