diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-04-23 17:15:33 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-04-24 16:55:12 +0200 |
commit | 372965b1b4950c41c66c946ddb0ee47698e0740a (patch) | |
tree | 295165919fbac9d2128d87ab0dd8756bc182c60a /test/files/run/lub-visibility.check | |
parent | 5ec9dbd6a983778b3765d2da36b208081896ad8e (diff) | |
download | scala-372965b1b4950c41c66c946ddb0ee47698e0740a.tar.gz scala-372965b1b4950c41c66c946ddb0ee47698e0740a.tar.bz2 scala-372965b1b4950c41c66c946ddb0ee47698e0740a.zip |
SI-7402 List extends Serializable
While we are all aware of the issues around Serialization,
I think in this case it is perfectly sound and safe to make
List serializable:
- List is not an interface, it is the base type of an ADT.
Common behavior of its members should be reflected in the base type.
- List is sealed, there is no chance of an user providing a new
non-serializable subtype of List.
Diffstat (limited to 'test/files/run/lub-visibility.check')
-rw-r--r-- | test/files/run/lub-visibility.check | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/lub-visibility.check b/test/files/run/lub-visibility.check index f3a6bef215..50a0cadebf 100644 --- a/test/files/run/lub-visibility.check +++ b/test/files/run/lub-visibility.check @@ -8,7 +8,8 @@ scala> // should infer List[scala.collection.immutable.Seq[Nothing]] scala> // but reverted that for SI-5534. scala> val x = List(List(), Vector()) -x: List[scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.Seq with scala.collection.AbstractSeq]; def dropRight(n: Int): scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.Seq with scala.collection.AbstractSeq]; def dropRight(n: Int): scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]{def dropRight(n: Int): scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]; def takeRight(n: Int): scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]; def drop(n: Int): scala.collecti... +x: List[scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing] with java.io.Serializable] = List(List(), Vector()) + scala> scala> |