Reports fields defined in subclasses of DelayedInit
that are initialized only when method
main
is executed.
Example:
class Test {
println(MyApp.initializedLater) // prints 0
}
object MyApp extends DelayedInit {
val initializedLater = 3
override def delayedInit(body: => Unit): Unit = {
new Test
body
}
}