I need to access the instance of a class from inside the function stored in its constructor property, like this
data class Parent(
val lambda: () -> Unit = {
// I need the instance of the enclosing Parent here
// this@Parent doesn't work
}
)
Is this possible?