summaryrefslogtreecommitdiff
path: root/test/files/run/idempotency-case-classes.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2015-07-29 11:39:04 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2015-07-30 09:58:23 +0200
commitdefb1465909c3f740871a56973c32b276f775b91 (patch)
treef31ae4c9fdb189302788fa31e61919d5b298128d /test/files/run/idempotency-case-classes.check
parent512d19387da86ce95d7edd1742bf03287cf68a39 (diff)
downloadscala-defb1465909c3f740871a56973c32b276f775b91.tar.gz
scala-defb1465909c3f740871a56973c32b276f775b91.tar.bz2
scala-defb1465909c3f740871a56973c32b276f775b91.zip
SI-9375 add synthetic readResolve only for static modules
For inner modules, the synthetic readResolve method would cause the module constructor to be invoked on de-serialization in certain situations. See the discussion in the ticket. Adds a comprehensive test around serializing and de-serializing modules.
Diffstat (limited to 'test/files/run/idempotency-case-classes.check')
-rw-r--r--test/files/run/idempotency-case-classes.check3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/idempotency-case-classes.check b/test/files/run/idempotency-case-classes.check
index 5a8d0ad9d3..ea698cec59 100644
--- a/test/files/run/idempotency-case-classes.check
+++ b/test/files/run/idempotency-case-classes.check
@@ -47,8 +47,7 @@ C(2,3)
case <synthetic> def unapply(x$0: C): Option[(Int, Int)] = if (x$0.==(null))
scala.this.None
else
- Some.apply[(Int, Int)](scala.Tuple2.apply[Int, Int](x$0.x, x$0.y));
- <synthetic> private def readResolve(): Object = C
+ Some.apply[(Int, Int)](scala.Tuple2.apply[Int, Int](x$0.x, x$0.y))
};
Predef.println(C.apply(2, 3))
}