File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
compiler/test/dotty/tools/backend/jvm Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ class DottyBytecodeTests extends DottyBytecodeTest {
597597 val clsIn = dir.lookupName(" Test.class" , directory = false ).input
598598 val clsNode = loadClassNode(clsIn)
599599 val method = getMethod(clsNode, " test" )
600- assertEquals(122 , instructionsFromMethod(method).size)
600+ assertEquals(123 , instructionsFromMethod(method).size)
601601 }
602602 }
603603
Original file line number Diff line number Diff line change @@ -228,7 +228,10 @@ Calculating a1
2282281
229229Calculating a2
2302302
231+ Calculating a3
232+ 3
231233Calculating a1
2322341
233235Calculating a2
2342362
237+ 3
Original file line number Diff line number Diff line change @@ -476,12 +476,18 @@ class WithTransient extends Serializable {
476476 println(" Calculating a2" )
477477 2
478478 }
479+ private lazy val a3 = {
480+ println(" Calculating a3" )
481+ 3
482+ }
483+
479484 @ transient object B extends Serializable
480485 @ transient private object C extends Serializable
481486
482487 def test = {
483488 println(a1)
484489 println(a2)
490+ println(a3)
485491 if (B == null || C == null )
486492 println(" Transient nested object failed to serialize properly" )
487493 }
You can’t perform that action at this time.
0 commit comments