a036e41809
^KT-59057 Merge-request: KT-MR-10748 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
15 lines
272 B
Kotlin
Vendored
15 lines
272 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
public class RunnableFunctionWrapper(val f : () -> Unit) : Runnable {
|
|
public override fun run() {
|
|
f()
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
var res = ""
|
|
RunnableFunctionWrapper({ res = "OK" }).run()
|
|
return res
|
|
}
|