karelpeeters
06/01/2018, 4:25 PMinterface IFoo {
fun test(): Boolean
}
class Impl: IFoo {
override fun test() = false
}
fun call(target: IFoo, method: IFoo.() -> Boolean) {
println(target.method())
}
fun main(args: Array<String>) {
call(Impl(), IFoo::test)
}