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

LUB of Left(1) and Right(1) is Product with Serializable with scala.util.Either[Int,Int] because Either doesn't extend Product and Serializable itself #9173

Closed
scabug opened this issue Feb 23, 2015 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 23, 2015

This seems to be yet another case where where subtypes of a sealed supertype cause larger-than-necessary types.

I think analogous to the reasoning in #7402 and #7403, Either should extend Product and Serializable itself too.

@scabug
Copy link
Author

scabug commented Feb 23, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9173?orig=1
Reporter: @soc
Affected Versions: 2.11.5
See #7402, #7403

@scabug
Copy link
Author

scabug commented Mar 26, 2015

@lrytz said:
fixed in scala/scala#4355, test case in scala/scala#4409

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

No branches or pull requests

2 participants