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
sealed trait Base[F[_]] case class Foo[F[_]]() extends Base[F] object Base
3 |object Base | ^ | the type test for Foo[?] cannot be checked at runtime // defined trait Base // defined case class Foo // defined object Base
Scala 2 doesn't warn here, and removing the object Base removes the warning on Dotty:
object Base
scala> sealed trait Base[F[_]] | case class Foo[F[_]]() extends Base[F] // defined trait Base // defined case class Foo
The text was updated successfully, but these errors were encountered:
Fixed in 0.25 (see #9045).
Sorry, something went wrong.
smarter
No branches or pull requests
minimized code
Compilation output
expectation
Scala 2 doesn't warn here, and removing the
object Base
removes the warning on Dotty:The text was updated successfully, but these errors were encountered: