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
In Scala 2 following code works just fine:
class IO[+A] trait Functor[F[_]] trait Monad[F[_]] extends Functor[F] class Stream[+F[_], +A] { def take[F1[x] >: F[x]](n: Int)(implicit f: Functor[F1]): Stream[F1, A] = { this } } implicit val ioMonad: Monad[IO] = null new Stream[IO, Int].take[IO](10)
However, the same code in Dotty results in: Type argument mains.Test.IO does not conform to lower bound my.package.IO
Type argument mains.Test.IO does not conform to lower bound my.package.IO
Expect the same behavior as in Scala 2.
The text was updated successfully, but these errors were encountered:
590f720
Merge pull request #7707 from dotty-staging/fix-#7648
c49ae36
Fix #7648: Heal variances when comparing eta-expansions
No branches or pull requests
minimized code
In Scala 2 following code works just fine:
However, the same code in Dotty results in:
Type argument mains.Test.IO does not conform to lower bound my.package.IO
expectation
Expect the same behavior as in Scala 2.
The text was updated successfully, but these errors were encountered: