kobiburnley
10/10/2017, 6:50 PMinterface Base {
fun print()
}
class BaseImpl(val x: Int) : Base {
override fun print() { print(x) }
}
class Derived(init: Derived.() -> Unit) : Base by b {
lateinit var b: Base
init {
this.init()
}
}