10 lines
168 B
Kotlin
Vendored
10 lines
168 B
Kotlin
Vendored
interface Flusher {
|
|
fun flush() = "OK"
|
|
}
|
|
|
|
fun myFlusher() = object : Flusher { }
|
|
|
|
fun flushIt(flusher: Flusher) = flusher.flush()
|
|
|
|
fun box() = flushIt(myFlusher())
|