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
If a class is defined with type parameters such as
class HigherKind[T](kind: T)
Then this code does not compile:
"support having with higher kinded types" in new Context { val dummy = mock[Dummy] checking { oneOf(dummy).higherKinded(having(any[HigherKind[_]])) } dummy.higherKinded(new HigherKind("123")) }
The error message is:
Error:(285, 41) type mismatch; found : org.specs2.matcher.Matcher[com.wix.common.specs2.HigherKind[_]] required: com.wix.common.specs2.HigherKind[_] oneOf(dummy).higherKinded(having(any[HigherKind[_]])) ^
while adding the explicit type parameter on having gets it to compile.
having
"support having with higher kinded types" in new Context { val dummy = mock[Dummy] checking { oneOf(dummy).higherKinded(having[HigherKind[_]](any[HigherKind[_]])) } dummy.higherKinded(new HigherKind("123")) }
The text was updated successfully, but these errors were encountered:
Fixed in #13.
Sorry, something went wrong.
No branches or pull requests
If a class is defined with type parameters such as
Then this code does not compile:
The error message is:
while adding the explicit type parameter on
having
gets it to compile.The text was updated successfully, but these errors were encountered: