Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot mock trait with methods with bounded type parameters #76

Open
amato-gianluca opened this issue Sep 23, 2014 · 0 comments
Open

Cannot mock trait with methods with bounded type parameters #76

amato-gianluca opened this issue Sep 23, 2014 · 0 comments

Comments

@amato-gianluca
Copy link

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?

paulbutcher added a commit that referenced this issue Feb 8, 2015
@barkhorn barkhorn modified the milestone: v4.0.0 Nov 20, 2016
@barkhorn barkhorn removed the bug label Jan 2, 2021
@barkhorn barkhorn changed the title Cannot mock trait which extends PartiallyOrdered Cannot mock trait with methods with bounded type parameters Jun 18, 2022
@barkhorn barkhorn removed this from the next-gen milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants