-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
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
Ambiguous implicit values #721
Comments
The only thing I can think of is the addition of buildableSeq as part of #575. |
I worked around it as follows: - import scala.collection.JavaConverters._
-
- Gen.sequence(bogoparts).map(_.asScala.mkString)
+ // type annotation shouldn't be necessary? see typelevel/scalacheck#721
+ Gen.sequence[List[String], String](bogoparts).map(_.mkString)
- val sequenced = Gen.sequence(listOfGens)
- sequenced.map(l => scala.collection.JavaConverters.asScalaBuffer(l).mkString)
+ // type annotation shouldn't be necessary? see typelevel/scalacheck#721
+ Gen.sequence[List[Char], Char](listOfGens).map(_.mkString) I don't know why JavaConverters dropped out of the picture, but perhaps it's a clue? 🤷 |
I presume the JavaConverters is just a consequence of the domain of the test. Not a lot of people use |
Seth ran across an issue in the Scala build when upgrading to ScalaCheck 1.15.1 from 1.14.3 in scala/scala#9301.
Seems it fails to compile because of an ambiguous implicit:
The text was updated successfully, but these errors were encountered: