We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I get an error in Dotty 0.6.0-RC1.
scala> enum class Hoge[F[_]] 1 |enum class Hoge[F[_]] |^ |Type argument F$1 has not the same kind as its bound
I guessed that it failed to derive an Eq instance.
The text was updated successfully, but these errors were encountered:
I think that will be fixed if #3970 is implemented.
Sorry, something went wrong.
The error comes from an incorrectly generated implicit instance of Eq:
Eq
final module class Hoge$() extends Object() { this: Hoge.type => implicit def eqInstance[F$1 <: [_$1] => Any, F$2 <: [_$1] => Any]( implicit evidence$1: Eq[F$1, F$2] ): Eq[Hoge[F$1], Hoge[F$2]] = Eq }
Eq[F$1, F$2] does not typecheck since F$1 and F$2 are type constructors. Maybe replacing this by Eq[F$1[_], F$2[_]] is good enough, not sure.
Eq[F$1, F$2]
F$1
F$2
Eq[F$1[_], F$2[_]]
84e62c3
Merge pull request #3982 from dotty-staging/fix-#3976
e2f72cd
Fix #3976: Fix Eq method for enums with higher-kinded parameters
No branches or pull requests
I get an error in Dotty 0.6.0-RC1.
I guessed that it failed to derive an Eq instance.
The text was updated successfully, but these errors were encountered: