Open juanjovazquez opened 6 years ago
I think this is a mistake on my part: https://github.com/frees-io/iota/blob/84a417bab5585b1ac45a84f2c40bcfab4ba43f66/modules/scalacheck/src/main/scala/iota/scalacheck/package.scala#L18
gens
should be renamed to arbitraries
then unsafe untyped line needs to be adjusted to get the Gen
by calling .arbitrary
on the arbitrary instance. Ideally we can add some tests to ensure this works correctly.
I can take a stab at this later this week.
A
java.lang.ClassCastException
is raised when projecting a sampleCoproduct
obtained through a scalacheckArbitrary
. Example: