Files
kotlin-fork/compiler/testData/codegen/box/traits/kt2260.kt
T
2018-06-28 12:26:41 +02:00

11 lines
194 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
interface Flusher {
fun flush() = "OK"
}
fun myFlusher() = object : Flusher { }
fun flushIt(flusher: Flusher) = flusher.flush()
fun box() = flushIt(myFlusher())