bod
10/31/2020, 3:37 PMget
of the delegated property is called at init time. So in a sense, these 2 constructs don't do the same:
// old way: wrapped.a is called only when this.a is called
val a: Boolean get() = wrapped.a
// new way: wrapped.a is called when this.a is called but also right here at init
val a by wrapped::a
Is this correct / intended or am I missing something?Animesh Sahu
10/31/2020, 4:36 PM