Open lolgab opened 4 months ago
Hi! If you could provide a corresponding example without slick that would spare a huge amount of time for me
Hi @goshacodes, I managed to extract a self-contained reproduction and added it to the issue description.
Thank you!
Hi again, I think it is impossible to make this work with scala 2. Works with scala 3 and latest slick
@goshacodes Good to know! One more reason to migrate to Scala 3. You can work around the issue by defining a trait and mocking that instead of mocking the class itself, which is what we are doing.
ScalaMock Version (e.g. 3.5.0)
6.0.0-M1
Scala Version (e.g. 2.12)
2.13.12
Runtime (JVM or JS)
JVM
Please describe the expected behavior of the issue
It should stub successfully without errors
Please provide a description of what actually happens
Mocking Slick classes fails to compile
Reproducible Test Case
Gives the following output:
Self-contained reproduction