Files
kotlin/compiler/testData/codegen/boxAgainstJava/sam/adapters/callAbstractAdapter.kt
2018-08-02 13:19:27 +02:00

21 lines
298 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: JavaInterface.java
interface JavaInterface {
void run(Runnable r);
}
// FILE: 1.kt
class Impl: JavaInterface {
override fun run(r: Runnable?) {
r?.run()
}
}
fun box(): String {
var v = "FAIL"
Impl().run { v = "OK" }
return v
}