You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With argonaut we discovered the following regression(this works in 2.9.2):
scala>importorg.scalacheck._importorg.scalacheck._
scala>typeListString=List[String]
defined typealiasListString
scala> implicitly[Arbitrary[List[String] =>List[String]]]
res0: org.scalacheck.Arbitrary[List[String] =>List[String]] = org.scalacheck.Arbitrary$$anon$2@7e4cd909
scala> implicitly[Arbitrary[ListString=>ListString]]
<console>:24:error: could not find implicit value for parameter e: org.scalacheck.Arbitrary[ListString=>ListString]
implicitly[Arbitrary[ListString=>ListString]]
As you can see replacing the type alias with the type it represents works, but with the type alias in place we get a failure.
The text was updated successfully, but these errors were encountered:
@retronym said (edited on Jan 8, 2013 6:25:58 PM UTC):
Backport for 2.10.x
I've manually checked that this works:
backport/1826 ~/code/scala squala -classpath build/quick/classes/scalacheck
Welcome to Scala version 2.10.1-20130108-190630-3b74691d35 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import org.scalacheck._
import org.scalacheck._
scala> type ListString = List[String]
defined type alias ListString
scala> implicitly[Arbitrary[List[String] => List[String]]]
res0: org.scalacheck.Arbitrary[List[String] => List[String]] = org.scalacheck.Arbitrary$$anon$1@7d365e01
scala> implicitly[Arbitrary[ListString => ListString]]
res1: org.scalacheck.Arbitrary[ListString => ListString] = org.scalacheck.Arbitrary$$anon$1@7fc4fe21
I haven't added this as a test case as this is a straight duplicate of #6846 which was already tested.
With argonaut we discovered the following regression(this works in 2.9.2):
As you can see replacing the type alias with the type it represents works, but with the type alias in place we get a failure.
The text was updated successfully, but these errors were encountered: