ScalaMock
ScalaMock copied to clipboard
Cannot mock trait with methods with bounded type parameters
The following fails:
trait P extends PartiallyOrdered[P] {
def f(x: P): P
}
val m = mock[P]
It generates a buch of errors such as "Parameter type in structural refinement may not refer to a type member of that refinement". Is it something that will need ScalaMock 4 or can be solved in ScalaMock 3?