We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When making a change that should be a refactoring a compile error is encountered.
This compiles,
(xClient.parseSentence _).when(*).onCall { p: String => parser(p)}
This fails to compile,
val parseSentenceFn = xClient.parseSentence _ parseSentenceFn.when(*).onCall(parser)
ScalaMock: Unrecognised structure: Ident(TermName("parseSentenceFn"))
The text was updated successfully, but these errors were encountered:
Thanks for the bug report.
It should be easy to fix.
Sorry, something went wrong.
This caught me too. We managed to work around it for the moment by forcing the implicit conversion to happen at the val declaration, something like:
val
val parseSentenceFn: StubFunction[_,_] = xClient.parseSentence _ parseSentenceFn.when(*).onCall(parser)
Hope that helps until the bug is fixed!
🍺
6cbb4d0
No branches or pull requests
When making a change that should be a refactoring a compile error is encountered.
This compiles,
This fails to compile,
The text was updated successfully, but these errors were encountered: