A complete example: ```interface IFoo { fun te...
# getting-started
k
A complete example:
Copy code
interface 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)
}