An example like this:
"startsWith" verifies { (a: String, b: String, c: String) =>
(a+b+c).startsWith(a) }
fails compiling with this very strange error message:
[error] ambiguous implicit values:
[error] both value successValueToProp in trait ScalaCheckMatchers of type =>
(org.specs.specification.SuccessValue) => org.scalacheck.Prop
[error] and method conforms in object Predef of type [A]<:<[A,A]
[error] match expected type (Nothing) => org.scalacheck.Prop
[error] "test" verifies { (a: String, b: String, c: String) =>
(a+b+c).startsWith(a) }
[error] ^
[error] one error found
What version of the product are you using? On what operating system?
Scala 2.8.1, specs 1.6.7
I'm trying to get some clue what is happening there.
Original issue reported on code.google.com by johannes...@googlemail.com on 25 Mar 2011 at 9:53
Original issue reported on code.google.com by
johannes...@googlemail.com
on 25 Mar 2011 at 9:53