diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-05 15:43:46 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-08-05 15:43:46 +0000 |
commit | 0a787b6477311a718cbb6abec15df9dfdc12186e (patch) | |
tree | 0c4eb20c15a17312c3d1cce51ea68344287a227a /src/intellij/library.iml.SAMPLE | |
parent | c690bf16b9dae7fec67b23b2deb105d7bd27621d (diff) | |
download | scala-0a787b6477311a718cbb6abec15df9dfdc12186e.tar.gz scala-0a787b6477311a718cbb6abec15df9dfdc12186e.tar.bz2 scala-0a787b6477311a718cbb6abec15df9dfdc12186e.zip |
close #3667.
scala> def ser(o: AnyRef) = new java.io.ObjectOutputStream(new java.io.ByteArrayOutputStream()).writeObject(o)
ser: (o: AnyRef)Unit
scala> @serializable class Outer {
| case class Inner(x: Int)
| }
defined class Outer
scala> val o = new Outer
o: Outer = Outer@34469729
scala> ser(new o.Inner(1))
scala> o.Inner // initialize the Inner$module field of o
res1: o.Inner.type = Inner
scala> ser(new o.Inner(1))
java.io.NotSerializableException: Outer$Inner$
review by extempore.
Diffstat (limited to 'src/intellij/library.iml.SAMPLE')
0 files changed, 0 insertions, 0 deletions