michaelrocks
08/25/2016, 3:05 PMinterface Test {
fun doSomething(): Unit
fun onDoSomething(): Unit
}
class TestMixin : Test {
override fun doSomething(): Unit {
onDoSomething()
}
override fun onDoSomething() = Unit
}
class TestImpl : Test by TestMixin() {
override fun onDoSomething(): Unit {
/* Impossible to call this method from TestMixin() */
}
}