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
List is not Serializable, which is confusing for users and causes lub-computation to infer a type of 250 lines #7402
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7402?orig=1 |
@retronym said: |
@adriaanm said: |
@paulp said: |
@soc said: |
@lrytz said: |
The issue is that Nil and :: implement Serializable by being a case class/object, but the sealed abstract class List does not.
This leads to huge types down the line:
... results in the following type:
Making List implement Serializable:
While we are all aware of the issues around Serializable, I think in this case it is perfectly sound and safe to make List serializable:
The text was updated successfully, but these errors were encountered: