Skip to content

Commit

Permalink
Merge pull request #403 from xuwei-k/revert-395
Browse files Browse the repository at this point in the history
partially revert #395
  • Loading branch information
non authored May 2, 2018
2 parents c523723 + eeec10e commit ccf4236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/org/scalacheck/Cogen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ sealed trait Cogen[T] extends Serializable {

object Cogen extends CogenArities with CogenLowPriority {

def apply[T](implicit ev: Cogen[T]): Cogen[T] = ev
// for binary compatibility
private[scalacheck] def apply[T](ev: Cogen[T]): Cogen[T] = ev

// https://github.com/rickynils/scalacheck/pull/395#issuecomment-383442015
def apply[T](implicit ev: Cogen[T], dummy: Cogen[T]): Cogen[T] = ev

def apply[T](f: T => Long): Cogen[T] = new Cogen[T] {
def perturb(seed: Seed, t: T): Seed = seed.reseed(f(t))
Expand Down

0 comments on commit ccf4236

Please sign in to comment.