given follwoing code :
trait Base { fun print() }
class
BaseImpl(val x : Int) : Base {
override fun print() { print(x) }
}
class
Derived : Base by BaseImpl(
10
) {
fun test() {
//Can I access to BaseImpl instance here ?
}
}
fun main(args : Array<String>) {
Derived().print()
// prints 10
}
Is there a way to access to BaseImpl instance, inside test method ?