Skip to content

Commit

Permalink
partially revert #395
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 27, 2018
1 parent 8cef8ef commit eeec10e
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

This comment has been minimized.

Copy link
@fommil

fommil Jun 21, 2018

yeah, I just got hit by this.

Could somebody please cut a release of 1.13 with this bincompat fix?


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 eeec10e

Please sign in to comment.