blob: 8e43f285cebd27b9ce2df8f016519c60d823aa99 [file]
// 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
}