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
The following code compiles on Scala but produces a cyclic reference involving trait CanBuildFrom compiler error on Dotty:
cyclic reference involving trait CanBuildFrom
class Test[T](f: List[String] => T) object o { implicit object a extends Test(_ map identity) implicit object b extends Test(_ map identity) }
The text was updated successfully, but these errors were encountered:
Slightly minimised:
import scala.collection.generic.CanBuildFrom class Test { implicitly[CanBuildFrom[List[_], Int, List[Int]]] class Foo[T](x: T) implicit object Bar extends Foo( implicitly[CanBuildFrom[List[_], Int, List[Int]]] ) }
> dotc tests/allan/Test.scala -- [E045] Syntax Error: tests/allan/Test.scala:21:30 --------------------------- 21 | implicit object Bar extends Foo( | ^ | cyclic reference involving trait CanBuildFrom 22 | implicitly[CanBuildFrom[List[_], Int, List[Int]]]
Sorry, something went wrong.
fc71ee6
No branches or pull requests
The following code compiles on Scala but produces a
cyclic reference involving trait CanBuildFrom
compiler error on Dotty:The text was updated successfully, but these errors were encountered: