We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ead8d commit a6457fbCopy full SHA for a6457fb
tests/run/i4559.check
@@ -0,0 +1,2 @@
1
+super[A] init
2
+x()
tests/run/i4559.scala
@@ -1,9 +1,10 @@
trait A {
+ println(s"super[A] init")
3
lazy val x = { println("super[A].x()"); 123 }
4
}
5
6
class B extends A {
- override lazy val x = 456
7
+ override lazy val x = { println("x()"); 456 }
8
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