summaryrefslogtreecommitdiff
path: root/test/files/run/t3038d.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t3038d.scala')
-rw-r--r--test/files/run/t3038d.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/files/run/t3038d.scala b/test/files/run/t3038d.scala
index 6cd2d83776..56cfcdb174 100644
--- a/test/files/run/t3038d.scala
+++ b/test/files/run/t3038d.scala
@@ -16,14 +16,12 @@ trait Foo {
}
}
-
-@serializable
-class Bar extends Foo {
+class Bar extends Foo with Serializable {
@transient protected var first: Any = null
def size = a
@transient var second: Any = null
- def checkMember { first }
+ def checkMember { if (first == null) print("") }
private def writeObject(out: java.io.ObjectOutputStream) {
serializeTo(out)