Skip to content

Commit 41cfb62

Browse files
szymon-rdKordyjan
authored andcommitted
Update printing tests to have matching AST
1 parent 2bfbe75 commit 41cfb62

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/printing/transformed/lazy-vals-new.check

+12-12
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ package <empty> {
1010
@static private def <clinit>(): Unit =
1111
{
1212
A.OFFSET$_m_0 =
13-
scala.runtime.LazyVals.getStaticFieldOffset(
13+
scala.runtime.LazyVals.getOffsetStatic(
1414
classOf[Object {...}].getDeclaredField("x$lzy1"))
1515
()
1616
}
1717
@static @static val OFFSET$_m_0: Long =
18-
scala.runtime.LazyVals.getStaticFieldOffset(
18+
scala.runtime.LazyVals.getOffsetStatic(
1919
classOf[Object {...}].getDeclaredField("x$lzy1"))
2020
private def writeReplace(): Object =
2121
new scala.runtime.ModuleSerializationProxy(classOf[A])
22-
@volatile private lazy <static> var x$lzy1: Object = null
22+
@volatile private lazy var x$lzy1: Object = null
2323
lazy def x(): Int =
2424
{
25-
val result: Object = A#x$lzy1
25+
val result: Object = A.x$lzy1
2626
if result.isInstanceOf[Int] then scala.Int.unbox(result) else
2727
if result.eq(scala.runtime.LazyVals.NullValue) then
2828
scala.Int.unbox(null) else scala.Int.unbox(A.x$lzyINIT1())
2929
}
3030
private def x$lzyINIT1(): Object =
3131
while <empty> do
3232
{
33-
val current: Object = A#x$lzy1
33+
val current: Object = A.x$lzy1
3434
if current.eq(null) then
3535
if
36-
scala.runtime.LazyVals.objCAS(classOf[A], A.OFFSET$_m_0, null,
36+
scala.runtime.LazyVals.objCAS(this, A.OFFSET$_m_0, null,
3737
scala.runtime.LazyVals.Evaluating)
3838
then
3939
{
@@ -49,15 +49,15 @@ package <empty> {
4949
}
5050
finally
5151
if
52-
scala.runtime.LazyVals.objCAS(classOf[A], A.OFFSET$_m_0,
52+
scala.runtime.LazyVals.objCAS(this, A.OFFSET$_m_0,
5353
scala.runtime.LazyVals.Evaluating, result).unary_!()
5454
then
5555
{
5656
val lock: scala.runtime.LazyVals.LazyVals$Waiting =
57-
A#x$lzy1.asInstanceOf[
57+
A.x$lzy1.asInstanceOf[
5858
scala.runtime.LazyVals.LazyVals$Waiting]
59-
scala.runtime.LazyVals.objCAS(classOf[A], A.OFFSET$_m_0,
60-
lock, result)
59+
scala.runtime.LazyVals.objCAS(this, A.OFFSET$_m_0, lock,
60+
result)
6161
lock.countDown()
6262
}
6363
else ()
@@ -71,8 +71,8 @@ package <empty> {
7171
then
7272
if current.eq(scala.runtime.LazyVals.Evaluating) then
7373
{
74-
scala.runtime.LazyVals.objCAS(classOf[A], A.OFFSET$_m_0,
75-
current, new scala.runtime.LazyVals.LazyVals$Waiting())
74+
scala.runtime.LazyVals.objCAS(this, A.OFFSET$_m_0, current,
75+
new scala.runtime.LazyVals.LazyVals$Waiting())
7676
()
7777
}
7878
else

0 commit comments

Comments
 (0)