Skip to content

Commit a6457fb

Browse files
committed
Update check file
1 parent 12ead8d commit a6457fb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/run/i4559.check

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
super[A] init
2+
x()

tests/run/i4559.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
trait A {
2+
println(s"super[A] init")
23
lazy val x = { println("super[A].x()"); 123 }
34
}
45

56
class B extends A {
6-
override lazy val x = 456
7+
override lazy val x = { println("x()"); 456 }
78
}
89

9-
object Test { def main(args: Array[String]): Unit = { new B() } }
10+
object Test { def main(args: Array[String]): Unit = { new B().x } }

0 commit comments

Comments
 (0)