Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert 2.12.0-M4 changes #395

Merged
merged 1 commit into from
Apr 22, 2018
Merged

Revert 2.12.0-M4 changes #395

merged 1 commit into from
Apr 22, 2018

Conversation

ashawley
Copy link
Contributor

These were changes that were made for fixing errors in a 2.12 milestone and also a fix that avoided breaking binary compatability in 1.13.0 for the bootstrap process.

This reverts #230 it was already partially reverted in 8abd189

These were changes that were made for fixing errors in a 2.12
milestone and also a fix that avoided breaking binary compatability in
1.13.0 for the bootstrap process.
@rickynils rickynils merged commit 7e7aae3 into typelevel:master Apr 22, 2018
@ashawley ashawley deleted the revert-230 branch April 22, 2018 19:52
@xuwei-k
Copy link
Contributor

xuwei-k commented Apr 23, 2018

This change cause ambiguous error with Scala 2.11.12 and -Xexperimental option 😕

scala> org.scalacheck.Cogen[Int]{(a: Seed, b: Int) => a}
<console>:16: error: ambiguous reference to overloaded definition,
both method apply in object Cogen of type (f: (org.scalacheck.rng.Seed, Int) => org.scalacheck.rng.Seed)org.scalacheck.Cogen[Int]
and  method apply in object Cogen of type (implicit ev: org.scalacheck.Cogen[Int])org.scalacheck.Cogen[Int]
match argument types ((org.scalacheck.rng.Seed, Int) => org.scalacheck.rng.Seed)
       org.scalacheck.Cogen[Int]{(a: Seed, b: Int) => a}
                           ^

xuwei-k added a commit to xuwei-k/scalacheck that referenced this pull request Apr 27, 2018
xuwei-k added a commit to xuwei-k/scalacheck that referenced this pull request Apr 27, 2018
@xuwei-k xuwei-k mentioned this pull request Apr 27, 2018
non added a commit that referenced this pull request May 2, 2018
@@ -30,8 +30,7 @@ sealed trait Cogen[T] extends Serializable {

object Cogen extends CogenArities with CogenLowPriority {

// See https://github.com/rickynils/scalacheck/issues/230 for dummy expl.
def apply[T](implicit ev: Cogen[T], dummy: Cogen[T]): Cogen[T] = ev
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this broke bincompat

Copy link
Contributor Author

@ashawley ashawley Jun 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it did break bincompat. I believe it should have only been released in 1.14.0, and not in 1.13.x.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm. Interesting. I am seeing the breakage in 1.13.x.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is possible something is transitively pulling in 1.14.x in my project. I'll check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants