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 is minimized from ScalaTest, which compiles fine in Scala 2.12.8, but causes a stackoverflow in Dotty:
class Test { def to[Col[_]](factory: Factory[Int, Col[Int]]): Col[Int] = ??? to(Vector) type Factory[-A, +C] = scala.collection.generic.CanBuildFrom[Nothing, A, C] // Ideally, this would be an opaque type implicit def fromCanBuildFromConversion[X, A, C](x: X)( implicit toCanBuildFrom: X => scala.collection.generic.CanBuildFrom[Nothing, A, C]): Factory[A, C] = ??? implicit def genericCompanionToCBF[A, CC[X] <: scala.collection.GenTraversable[X]]( fact: scala.collection.generic.GenericCompanion[CC]): scala.collection.generic.CanBuildFrom[Any, A, CC[A]] = ??? }
Note that in the above, if we comment out fromCanBuildFromConversion, it compiles both in Scala 2.12.8 and Dotty.
fromCanBuildFromConversion
This seems to be the culprit of a compiler hang when working with a test in Scalactic.
Chain(1, 2, 3).to(Vector) shouldBe Vector(1, 2, 3)
The text was updated successfully, but these errors were encountered:
Duplicate of #6058 ?
Sorry, something went wrong.
Fix scala#6119: add test
7c24e54
Merge pull request #6166 from dotty-staging/fix-6119
2ad2879
Fix #6119: add test
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The following code is minimized from ScalaTest, which compiles fine in Scala 2.12.8, but causes a stackoverflow in Dotty:
Note that in the above, if we comment out
fromCanBuildFromConversion
, it compiles both in Scala 2.12.8 and Dotty.This seems to be the culprit of a compiler hang when working with a test in Scalactic.
The text was updated successfully, but these errors were encountered: