JVM_IR indy-SAM conversions: more cases

KT-44278 KT-26060 KT-42621
This commit is contained in:
Dmitry Petrov
2021-01-20 14:51:07 +03:00
parent 3140cca050
commit f30e25aa52
17 changed files with 383 additions and 57 deletions
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
fun interface KRunnable {
fun run()
}
fun runIt(r: KRunnable) {
r.run()
}
fun box(): String {
var test = "Failed"
runIt { test = "OK" }
return test
}