ScalaMock icon indicating copy to clipboard operation
ScalaMock copied to clipboard

Cannot mock trait with methods with bounded type parameters

Open amato-gianluca opened this issue 10 years ago • 0 comments

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?

amato-gianluca avatar Sep 23 '14 08:09 amato-gianluca