diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-09-15 15:18:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-15 15:18:30 +1000 |
commit | be43eb5fba5da844f664cca10783bb869c7b76e7 (patch) | |
tree | 225b1aecc8dcb6c77248e1c5a308c3151cd995c2 /test/files/run/t6028.check | |
parent | 81effdb9a2cd9e94b88f18181b8405a32f883f71 (diff) | |
parent | a5bb6e00f051bf93fe7df4a02583eba478fa5ca1 (diff) | |
download | scala-be43eb5fba5da844f664cca10783bb869c7b76e7.tar.gz scala-be43eb5fba5da844f664cca10783bb869c7b76e7.tar.bz2 scala-be43eb5fba5da844f664cca10783bb869c7b76e7.zip |
Merge pull request #5398 from retronym/ticket/SD-225
SD-225 Use a "lzycompute" method for module initialization
Diffstat (limited to 'test/files/run/t6028.check')
-rw-r--r-- | test/files/run/t6028.check | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/t6028.check b/test/files/run/t6028.check index d6cc452bbf..80f8698ecf 100644 --- a/test/files/run/t6028.check +++ b/test/files/run/t6028.check @@ -54,10 +54,11 @@ package <empty> { <synthetic> <stable> <artifact> def $outer(): T = MethodLocalObject$2.this.$outer; <synthetic> <stable> <artifact> def $outer(): T = MethodLocalObject$2.this.$outer }; + final private[this] def MethodLocalObject$lzycompute$1(barParam$1: Int, MethodLocalObject$module$1: runtime.VolatileObjectRef): Unit = T.this.synchronized[Unit](if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null)) + MethodLocalObject$module$1.elem = new T#MethodLocalObject$2.type(T.this, barParam$1)); final <stable> private[this] def MethodLocalObject$1(barParam$1: Int, MethodLocalObject$module$1: runtime.VolatileObjectRef): T#MethodLocalObject$2.type = { if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null)) - T.this.synchronized[Unit](if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null)) - MethodLocalObject$module$1.elem = new T#MethodLocalObject$2.type(T.this, barParam$1)); + T.this.MethodLocalObject$lzycompute$1(barParam$1, MethodLocalObject$module$1); MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]() }; @SerialVersionUID(value = 0) final <synthetic> class $anonfun$tryy$1 extends scala.runtime.AbstractFunction0$mcV$sp with Serializable { |