3140cca050
KT-44278 KT-26060 KT-42621
21 lines
254 B
Kotlin
Vendored
21 lines
254 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// JVM_TARGET: 1.8
|
|
// SAM_CONVERSIONS: INDY
|
|
|
|
fun interface KRunnable {
|
|
fun run()
|
|
}
|
|
|
|
fun runIt(r: KRunnable) {
|
|
r.run()
|
|
}
|
|
|
|
var test = "Failed"
|
|
|
|
fun box(): String {
|
|
val ok = "OK"
|
|
runIt { test = ok }
|
|
return test
|
|
}
|
|
|